Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1196771pxb; Wed, 10 Feb 2021 02:31:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhvHQcsx2kalV7eY/PQE+LMyJT1/GhHt73pJKMJriDoTeYqwJECxx3bXjM4PyJXEoDw4G5 X-Received: by 2002:a17:906:25db:: with SMTP id n27mr2247829ejb.552.1612953072584; Wed, 10 Feb 2021 02:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612953072; cv=none; d=google.com; s=arc-20160816; b=VX5UwYDBgWYtQ+jZHDqxvS0YZ7a+szkwT6aC2lZAgRe+ywG1qBqEWeWQkEt+k1/+Gk /9eI809mVFNK7+Pcjgllg2E0Iy485FXW7rPBNhlzuslrstkgw+YrS8q3WZ2cZpMmXFQ+ 1XiDFrr0W1Sn571LKT28siPoR1vPIkuF8LQ0Y3S68nMurm3k+zYRwOj8ma6UHAM0VspP xuAsoHGldoZIWICDAl/vUKfYAoObLUoXqaB/fFUno4z84bAHLIXP09vMQzSlLNHRdKgR hrF28FIK/n6X/ulT6+anI7i+nZ0vcYNIGUlXxQxHTzmzUw9J7yZc3fp8LZkJVplx31bX skpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3EZcIx57dtjwbSL1k7C+oZwjaz0Cw8Ii9+YuvFCjbVA=; b=cXvbU5nwLxDNYWZUnIooYODgFthG8FG3mn3tXR6+VOqiYv/7CYjvOIpWiflyBnuCIj +7qf85bsWn5yoo8sBSZxfV3YErYCJ2FNJ+WVIxnHIkmDVb/oerYQ8Dm0bjjqWHJwF8IF HIq3a9i8D00IsJKW0+8dBhsr9gcugOe/gzGbxgP6/8+kNmcskF0XtR6iPo+kAGq1TZ59 LbgiKTns6FX2/itAC4CklqTCDO8C5l2CYVjvUeafI1uuEhRirFZIBRlpZGLkxRT/nsi4 +HIOx94N3MdM0ZYRikrnpM2FqVJjxZ/z3kERpI0a1j/o4rvU8r65TZ58F+ma2PsrrSjl NmxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gaULwByF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kj18si1006841ejc.94.2021.02.10.02.30.48; Wed, 10 Feb 2021 02:31:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gaULwByF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231539AbhBJK2W (ORCPT + 99 others); Wed, 10 Feb 2021 05:28:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbhBJKRL (ORCPT ); Wed, 10 Feb 2021 05:17:11 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 113DAC061756; Wed, 10 Feb 2021 02:16:30 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id z9so863459pjl.5; Wed, 10 Feb 2021 02:16:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3EZcIx57dtjwbSL1k7C+oZwjaz0Cw8Ii9+YuvFCjbVA=; b=gaULwByFe/mfO9pwL9gb+FcVy5zdJg886jB9vnJ6fRPEgV+C0x11tj/AxvRZRF64Yq Q1e3AXQTH8QnmHSbyiBh9LD+v8+XGKIVkVj5oXVH0F8YVtZbTSi+viqVNEZxReUrbbY4 xJaF1judKEK97aO00g7FoqvR0mK069NEuJ9teEU7E8mLDlPO0ibTb5Bw5ypBYPGTwTRS ZJ3Mvt6uk0q+DpC+btiJcHYuNAvg5PXuYVSUS2PVxkoAfYKZVHj/h3gcspp2stkvaxrW iqjQGa7THS2Iy/ZC25TxtnA2l6hDoSGKT0371HsYzbHTjUlDhdmEBq4alNGoS+c+0/i6 UJMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3EZcIx57dtjwbSL1k7C+oZwjaz0Cw8Ii9+YuvFCjbVA=; b=oV4GjHrWnJ0Sl68EyOK0ExEv0v0My2A8MSdUXO1FAeTrYOoFKVD3FRF1vNLPIeiYzt Ac7ogLL8z3rQbTbdUg5AQxLW486SUl5AM/M8C68XS7/aWoHf64egfx/aR9bsJVkPNXiQ GnYND82fbrwUW3B9Q+NPPicn+2TOtt1vItyk5nqtrCdXHadCJEmpPDclQimbqf+t68WP RSZ1UZL/uG0FULlGisxi5S0KXxuQOjyZdLjhIwBHFjXR+L7fhFSMOo14KyFXk60SJ1nQ aNt7IOu4LthmR92AiCrJGLnATUVdLEN8Y+5ZtJ0uPH0YvnqSFkEOWsi34myrkWJAIcKw kYTg== X-Gm-Message-State: AOAM530jhSX34oL6NnCYMlsFJGC7QX2V6uEmpqyDfkOKRC31S3L1QjYB MqyHkGvVTdKr9de3kGx/RImGvFHEmEvqwUqLgTs= X-Received: by 2002:a17:90a:644a:: with SMTP id y10mr2519617pjm.129.1612952189609; Wed, 10 Feb 2021 02:16:29 -0800 (PST) MIME-Version: 1.0 References: <20210210074946.155417-1-drew@beagleboard.org> <20210210074946.155417-2-drew@beagleboard.org> In-Reply-To: <20210210074946.155417-2-drew@beagleboard.org> From: Andy Shevchenko Date: Wed, 10 Feb 2021 12:16:13 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] pinctrl: use to octal permissions for debugfs files To: Drew Fustini Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Tony Lindgren , Alexandre Belloni , Geert Uytterhoeven , Pantelis Antoniou , Jason Kridner , Robert Nelson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 9:50 AM Drew Fustini wrote: > > Switch over pinctrl debugfs files to use octal permissions as they are > preferred over symbolic permissions. Refer to commit f90774e1fd27 > ("checkpatch: look for symbolic permissions and suggest octal instead"). You forgot: Suggested-by: Andy Shevchenko LGTM after addressing what Geert noticed. > Signed-off-by: Drew Fustini > --- > drivers/pinctrl/core.c | 6 +++--- > drivers/pinctrl/pinconf.c | 4 ++-- > drivers/pinctrl/pinmux.c | 4 ++-- > 3 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c > index 3663d87f51a0..c9c28f653799 100644 > --- a/drivers/pinctrl/core.c > +++ b/drivers/pinctrl/core.c > @@ -1914,11 +1914,11 @@ static void pinctrl_init_debugfs(void) > return; > } > > - debugfs_create_file("pinctrl-devices", S_IFREG | S_IRUGO, > + debugfs_create_file("pinctrl-devices", 0400, > debugfs_root, NULL, &pinctrl_devices_fops); > - debugfs_create_file("pinctrl-maps", S_IFREG | S_IRUGO, > + debugfs_create_file("pinctrl-maps", 0400, > debugfs_root, NULL, &pinctrl_maps_fops); > - debugfs_create_file("pinctrl-handles", S_IFREG | S_IRUGO, > + debugfs_create_file("pinctrl-handles", 0400, > debugfs_root, NULL, &pinctrl_fops); > } > > diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c > index 02c075cc010b..f005921bb49e 100644 > --- a/drivers/pinctrl/pinconf.c > +++ b/drivers/pinctrl/pinconf.c > @@ -370,9 +370,9 @@ DEFINE_SHOW_ATTRIBUTE(pinconf_groups); > void pinconf_init_device_debugfs(struct dentry *devroot, > struct pinctrl_dev *pctldev) > { > - debugfs_create_file("pinconf-pins", S_IFREG | S_IRUGO, > + debugfs_create_file("pinconf-pins", 0400, > devroot, pctldev, &pinconf_pins_fops); > - debugfs_create_file("pinconf-groups", S_IFREG | S_IRUGO, > + debugfs_create_file("pinconf-groups", 0400, > devroot, pctldev, &pinconf_groups_fops); > } > > diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c > index bab888fe3f8e..7f6190eaedbb 100644 > --- a/drivers/pinctrl/pinmux.c > +++ b/drivers/pinctrl/pinmux.c > @@ -676,9 +676,9 @@ DEFINE_SHOW_ATTRIBUTE(pinmux_pins); > void pinmux_init_device_debugfs(struct dentry *devroot, > struct pinctrl_dev *pctldev) > { > - debugfs_create_file("pinmux-functions", S_IFREG | S_IRUGO, > + debugfs_create_file("pinmux-functions", 0400, > devroot, pctldev, &pinmux_functions_fops); > - debugfs_create_file("pinmux-pins", S_IFREG | S_IRUGO, > + debugfs_create_file("pinmux-pins", 0400, > devroot, pctldev, &pinmux_pins_fops); > } > > -- > 2.25.1 > -- With Best Regards, Andy Shevchenko