Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1197234pxb; Wed, 10 Feb 2021 02:32:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMhjhO9zR9jQ3GyidBM5Cih1VKq0mhrlGBXiaYU+amgH/4B5eeDUqjdUakJf/hsyR2sW+j X-Received: by 2002:a17:906:b28f:: with SMTP id q15mr2268335ejz.77.1612953130206; Wed, 10 Feb 2021 02:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612953130; cv=none; d=google.com; s=arc-20160816; b=RMFGAyvi4/9poj6s5bsQ6JVSsnXEI8qIZZdNHq1lUeLeynbYiFGs3E3OR4bzGhSntE XBATbr6GZtaZLIQNdO0CO7vBFIGD2C01MQAdIZM70k7WDMqnReu7o7tLsZ6H50QkdCx8 p7ZinQGanfUtEpNyczvOGmsmMLzfRxw8EBcN9h51ZhnyA8Y8l4kClVvolYqL4U4YXDeh c/lIkLLdVtTzyOohTWnfi1aSGmGaU0bVDNRMK+7Nw4GqS1dfHDkIrxI02gSosLIjwf8K bOBKCBiMYdOxnpfpn6AOGxbZ7vVDehrWrntec7NRmmpuJnQ5ABYWosd/NHUjcI9jutIZ I4Qw== 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=Iof9qrGrOjDVGG80uBcZwlY5H3RKsoP1e9Sucn4XJt8=; b=U8gpSoBSw9S4qqhJoh7Mf5dGSMz5a0V88RIbswoGPrLPfEhURuQFnwWcJcbn2wUSo5 +gb6O7OY7a3mhabR7JkaLs1tqlMhMynhvdZcTbsNzsorwZ3nlEK0TnUBSPVUO5Fydsa0 zeScwKqDcg4iNYjPy8ose68+7F95+X1uneh6wmz8DeEuoG6sTeUawND8g1Sgt5UgW3FT 5RvX4SZuDDy4Sn/Iw0EZe9DH6IUx4ul658Kwskvtm3dqVKDmrf/SMfPdzhZkFjK1E5OI Rn9xlvU5m3kTJ1/ekVzzX3xHuh1sPQsVQHxIH1CAzx6EZWvuVMSV2mMWTNtJBHbKvL7Q 1bZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZQa/tDej"; 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 j12si1017083ejt.34.2021.02.10.02.31.45; Wed, 10 Feb 2021 02:32:10 -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="ZQa/tDej"; 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 S229889AbhBJKbP (ORCPT + 99 others); Wed, 10 Feb 2021 05:31:15 -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 S230374AbhBJKTb (ORCPT ); Wed, 10 Feb 2021 05:19:31 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39311C06174A; Wed, 10 Feb 2021 02:19:12 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id j12so944751pfj.12; Wed, 10 Feb 2021 02:19:12 -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=Iof9qrGrOjDVGG80uBcZwlY5H3RKsoP1e9Sucn4XJt8=; b=ZQa/tDejNb6Jn/RSxfU7tZw7o9wXC0gg6XpETJcn2NqqcNGTJH2uuLVD9bCACWQsz8 C5x7mIklmdk34LcM4UlCf6yxW+ARB/gTeFrxBbUXhrPjeVJQg0aN2RdI2imYsFb2cpMB taiQqsApfs4YNbilt+U6X9FASV09RWp3MOs68FuZrEpluOQg3OTND6j2r2LFe6XVl8f8 dcUhhO9ikVA+eL5YuFu+oJVic6Kasyy5eXgl1834w9Usa9qQLaSIIFsPi/kGueZqg0f0 /75/wTr7TlV7nrO9kmy8cG6DpbFQYM4vkKbU6VjPRIgMDyWbd7VxZLftsP85aWmB3Ma9 tgmw== 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=Iof9qrGrOjDVGG80uBcZwlY5H3RKsoP1e9Sucn4XJt8=; b=olmQjXRHY41W/osASSo+/pvY0KsZ7eFzG0NJxrOxhqlpHy1As1a5Zdyr/IT2anOdza W+Hh75nDS8Ai8XzBEx1ygbYjW1A08Qkh8huE83hUitgkEB8nS1XYRxI5vQC9LsRoUj4c GT3ht5Fu0wReT5l37R5/lRljYZA4d3tq+Q0NA98QCcET3bQRj5eVlZQNSQuFQiIv4fDT RhvG7XJq6HjtqkO/NBZJCB+FjXsCAeF9HWhJ7fWBgJq2VmBw+aTNrvhn0GhaLBi/4b50 rRPJ1LtBJZZXsGPRYbrt1FEnKdwCjvxQnSluP6m1oBSsx039mtXXDHpRyNel3WaB8EG4 cPEg== X-Gm-Message-State: AOAM531CF94kTAXZT4WJHzfN1I6JFJtiQtMOlXLgNo1g2ry8DFwY3b5t /nxqkmtOHs8PGFWBzA7fseZt5pyXFNODclRVyr8= X-Received: by 2002:a05:6a00:854:b029:1b7:6233:c5f with SMTP id q20-20020a056a000854b02901b762330c5fmr2361426pfk.73.1612952351766; Wed, 10 Feb 2021 02:19:11 -0800 (PST) MIME-Version: 1.0 References: <20210210074946.155417-1-drew@beagleboard.org> <20210210074946.155417-2-drew@beagleboard.org> <87437daafdd86fa5c765ff9b17b6c7b097f0c317.camel@perches.com> In-Reply-To: <87437daafdd86fa5c765ff9b17b6c7b097f0c317.camel@perches.com> From: Andy Shevchenko Date: Wed, 10 Feb 2021 12:18:55 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] pinctrl: use to octal permissions for debugfs files To: Joe Perches Cc: Drew Fustini , 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 10:30 AM Joe Perches wrote: > On Tue, 2021-02-09 at 23:49 -0800, Drew Fustini wrote: > > - debugfs_create_file("pinctrl-devices", S_IFREG | S_IRUGO, > > + debugfs_create_file("pinctrl-devices", 0400, > > debugfs_root, NULL, &pinctrl_devices_fops); > > NAK. You've changed the permission levels. NAK is usually given when the whole idea is broken. Here is not the case and you may have helped to amend the patch. ... > And you have to keep the S_IFREG or'd along with the octal. Perhaps time to read the code? https://elixir.bootlin.com/linux/latest/source/fs/debugfs/inode.c#L387 ... > checkpatch does this conversion using this command line: > > $ ./scripts/checkpatch.pl -f --show-types --terse drivers/pinctrl/*.[ch] --types=SYMBOLIC_PERMS --fix-inplace NAK! See above. > - debugfs_create_file("pins", S_IFREG | S_IRUGO, > + debugfs_create_file("pins", S_IFREG | 0444, > device_root, pctldev, &pinctrl_pins_fops); -- With Best Regards, Andy Shevchenko