Message ID | 1389202297.23721.33.camel@hornet |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDV43YEW6EKBBBMXW2LAKGQEBAWZTTY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f198.google.com (mail-gg0-f198.google.com [209.85.161.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B4E43202E2 for <linaro@patches.linaro.org>; Wed, 8 Jan 2014 17:31:50 +0000 (UTC) Received: by mail-gg0-f198.google.com with SMTP id j1sf2364033ggn.5 for <linaro@patches.linaro.org>; Wed, 08 Jan 2014 09:31:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:subject:from:to:cc:date :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=xoWpjDhJicB6FMaGexHwrJbdlck3oaFDdagZh2ujZZc=; b=Tt/sRy7+W9bB9gK/ek5goZxJ9Ntde0m5QfLToZTSYehRYNAmVzDb+FHX3Na2s6vnOC UN6s26tLgE9vYxei1ke2Vj2cmLaDKRRQd5giLmjHBiimk5HU863P7uRB/Ig4ZuFmfcTb A4Mv1LqJCyCQumVcP1B3Aew+s7wcg72foA3k0fTYguIWpP4JtzNeHgeJBDF0gQReyf7R /CfylBFn/7C8CcWK1d+jGpBmmv3Zk2qgbAIerLPQlCCdKjLWtcJ1RArNg9bs6/UDF8iY UgdD6coi/UP40CxesaET2BxZLX2wfDPSpM/9IOZpN3GinI3L/xF+6raXeXxEMXXjVYNG Xj+Q== X-Gm-Message-State: ALoCoQmu5lrlMgteNf0F+dGJr1Z4iA3fGqQSgJrTO2vCjv+rLg0Z72UAVEgyFFhuLQTh5F9qO/+N X-Received: by 10.236.123.136 with SMTP id v8mr1162629yhh.56.1389202309655; Wed, 08 Jan 2014 09:31:49 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.118.233 with SMTP id kp9ls617966qeb.4.gmail; Wed, 08 Jan 2014 09:31:49 -0800 (PST) X-Received: by 10.58.37.67 with SMTP id w3mr11866432vej.22.1389202309542; Wed, 08 Jan 2014 09:31:49 -0800 (PST) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id wz7si974356vdc.130.2014.01.08.09.31.49 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Jan 2014 09:31:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id x8so1363877vbf.31 for <patchwork-forward@linaro.org>; Wed, 08 Jan 2014 09:31:49 -0800 (PST) X-Received: by 10.58.134.40 with SMTP id ph8mr4522510veb.61.1389202309386; Wed, 08 Jan 2014 09:31:49 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp241044ved; Wed, 8 Jan 2014 09:31:48 -0800 (PST) X-Received: by 10.68.240.103 with SMTP id vz7mr23608435pbc.11.1389202308461; Wed, 08 Jan 2014 09:31:48 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xa2si1138121pab.345.2014.01.08.09.31.47; Wed, 08 Jan 2014 09:31:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932131AbaAHRbm (ORCPT <rfc822;patch@linaro.org> + 26 others); Wed, 8 Jan 2014 12:31:42 -0500 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:15166 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756136AbaAHRbi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Jan 2014 12:31:38 -0500 Received: from [10.2.201.141] (hornet.cambridge.arm.com [10.2.201.141]) by collaborate-mta1.arm.com (Postfix) with ESMTP id 616BF13F69F; Wed, 8 Jan 2014 11:31:36 -0600 (CST) Message-ID: <1389202297.23721.33.camel@hornet> Subject: Re: [RFC 07/18] regmap: debugfs: Always create "registers" & "access" files From: Pawel Moll <pawel.moll@arm.com> To: Mark Brown <broonie@kernel.org> Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Samuel Ortiz <sameo@linux.intel.com>, Arnd Bergmann <arnd@arndb.de>, Jon Medhurst <tixy@linaro.org>, "arm@kernel.org" <arm@kernel.org>, Olof Johansson <olof@lixom.net>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Date: Wed, 08 Jan 2014 17:31:37 +0000 In-Reply-To: <20131224121912.GX30815@sirena.org.uk> References: <1387815830-8794-1-git-send-email-pawel.moll@arm.com> <1387815830-8794-8-git-send-email-pawel.moll@arm.com> <20131224121912.GX30815@sirena.org.uk> X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pawel.moll@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit |
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c index c5471cd..45d812c 100644 --- a/drivers/base/regmap/regmap-debugfs.c +++ b/drivers/base/regmap/regmap-debugfs.c @@ -511,7 +511,7 @@ void regmap_debugfs_init(struct regmap *map, const char *name) debugfs_create_file("range", 0400, map->debugfs, map, ®map_reg_ranges_fops); - if (map->max_register) { + if (map->max_register || regmap_readable(map, 0)) { debugfs_create_file("registers", 0400, map->debugfs, map, ®map_map_fops); debugfs_create_file("access", 0400, map->debugfs,