Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1718428pxb; Wed, 10 Feb 2021 15:18:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+8WaS+56LaZe9Rkurw3tawpTNSa912JfPbnW5qnvvxqGNPcuE0X4Z+VsVoVGVIAO7MHrg X-Received: by 2002:a05:6402:2547:: with SMTP id l7mr5330992edb.157.1612999123831; Wed, 10 Feb 2021 15:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612999123; cv=none; d=google.com; s=arc-20160816; b=gRd4AC/xBOqem6nc9FYXt3xpBuoUS3DOrU2iJDXew25xxvzo13t9nZkoecB4I40ROI 2+GnkAZzxDBoiXJIh/J7HzPwr37urtm2WObelIEDuNYNsUvrd0XDZE9wOUdei6XDBfmN 57GFLWDJJtVMA22nPK9Qk31GUicOm5rzaUxZOzaGvpJiuPWsBPb3FZaYSnrnkH9RviXD 0RdUcY0ydacRFo1dySCkFoCsIPGE817bcVbG4FKi7UlrMvR6QIQLuK69knvdpHx2ydn3 wWimteDJ7SLkOzpEmW/1b8VYAE7sJFWLxVf4Vpi4OsJvg154o0UwEta3SFEDzTpDxEYM DNkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=rRoVOtoLnYuGzrwJgakRHDrmwKRjMfPOXVSDyW9DpA4=; b=uJP496la0gqOfSQ9GsXytrw6CKGAv3mF8D5cShB/8GUJvr/1jaAqEg6pjzNmFolGKD bigJ9GtlKb3BXmpkz/qISed/iqx0eHaYoIGmGjOiNXME9HiYfmj9AIaUyMNHbWH5mjup 3uMIkAbv6sUUd4JwHVugXUmIzUcMIaZ3z2BBTcn31RJ3yo+NpqeRxMkAaJFCXojz/BP4 ATkr2aZe7CSyxYKfE6Umu2rGqIDcn8OfHHjRJA+N1MMY2fXt1LfQDF3iY8IBbNturbHG laAfjh2wa5Djjl++TnNrjm2z3v9HNs/bPpXYHwqXgfqJ7nLxW31x+gfmj8TnkB7VnUDG x4VQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si2436612eds.28.2021.02.10.15.18.19; Wed, 10 Feb 2021 15:18:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234147AbhBJXQZ (ORCPT + 99 others); Wed, 10 Feb 2021 18:16:25 -0500 Received: from smtprelay0066.hostedemail.com ([216.40.44.66]:41828 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233574AbhBJXNi (ORCPT ); Wed, 10 Feb 2021 18:13:38 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 2F19018029DA9; Wed, 10 Feb 2021 23:12:43 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3653:3865:3867:3871:3872:4321:4362:5007:7652:7903:10004:10400:10848:11026:11232:11658:11914:12049:12296:12297:12740:12760:12895:13069:13311:13357:13439:13548:14659:14721:21080:21611:21627:30054:30060:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: cork97_4c1518427613 X-Filterd-Recvd-Size: 2099 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf20.hostedemail.com (Postfix) with ESMTPA; Wed, 10 Feb 2021 23:12:41 +0000 (UTC) Message-ID: <0bd0286b12832bdbe815325f581aec3a8ae3ca2d.camel@perches.com> Subject: Re: [PATCH v2 1/2] pinctrl: use to octal permissions for debugfs files From: Joe Perches To: Drew Fustini Cc: Andy Shevchenko , Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Tony Lindgren , Alexandre Belloni , Geert Uytterhoeven , Pantelis Antoniou , Jason Kridner , Robert Nelson Date: Wed, 10 Feb 2021 15:12:39 -0800 In-Reply-To: <20210210212115.GA216435@x1> References: <20210210074946.155417-1-drew@beagleboard.org> <20210210074946.155417-2-drew@beagleboard.org> <87437daafdd86fa5c765ff9b17b6c7b097f0c317.camel@perches.com> <20210210212115.GA216435@x1> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-02-10 at 13:21 -0800, Drew Fustini wrote: > I will change from the incorrect 0400 to 0444. Thanks. > As for S_IFREG, it does seem like leaving off S_IFREG is the most common > case when using octal permissions with debugfs_create_*(): > > $ git grep debugfs_create drivers/ |grep 0444 |grep -v S_IFREG | wc -l > 302 > $ git grep debugfs_create drivers/ |grep 0444 |grep S_IFREG | wc -l > 9 It's ~2:1 when using S_IRUGO $ git grep debugfs_create_file drivers/ | grep S_IRUGO | grep -v S_IFREG | wc -l 109 $ git grep debugfs_create_file drivers/ | grep S_IRUGO | grep S_IFREG | wc -l 48