Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp515166ybi; Fri, 21 Jun 2019 03:35:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQT/6M+j5ZiBCY11Zau/ZouBmHNxhtB6tt+GoPBikron6spYpE0IsnpT71t+s8yRUt4AoS X-Received: by 2002:a17:90a:f98a:: with SMTP id cq10mr2932498pjb.43.1561113347881; Fri, 21 Jun 2019 03:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561113347; cv=none; d=google.com; s=arc-20160816; b=Wj5fEo9/ZoUQJno145IXFxJeWlTgjBFWJx1rY6Ums5ZUftmgC0tdj6XQAgJbgjqhm9 QUy7fYcDXQm4HIPJ/OaWv+w5K5bwRKTmRCHS2avPZaZ2/iUvhn+PdUQNvaEtJ7aNTkug FOrvkULn7QpwAgUhIrcNpxWciTK1K6GLn6/B4L+ojO6MHK7vu3mPcOUlfgYBX9yHBwUK C/+BRgbwcmqc1Bp1lHw3hgncRdN+gxPvSYdLYfG4WxvzdnbEsShwiqK2dqMNwahDo0GA nfjU91uc2Zjcy6BaLnI2sQaWAsEPfnmGZ8a3BzbZO3W9TneTlPkUbdo9T+Ov9MBPG7Tj bnqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zpskMPE9OKTdD4zPuyxeU/1TLb1myVFguUVGtb+4nAs=; b=iVaRZ+kSxE3sDHMth/B9yK4LOHRgb986LAGTC+q8ZktiLbbKtlL0uOQXCCiOWHY1uo F2PS3dXzuaqWtgXf98FF2dkeCMqg5YeCVlwGkiwhY8JsqycTtO7qMwT4/YMb35unLXZE NzELBgz9tPRJGSgfw+HM9uKMomELwoOkDISPqXCMUTFdxG7PhmT47/7wJw+zMLKAI8XP PsRUb3LVstBrM8b8+SnqVnnCVtJigjQ/SZSkYmorKw2KuEDZFUvXqJzYjw0xgbmCyhkg us+rkd2K281wOVjAYI0jVUGFUGptDJ1eIf2AHk2LJfFxm82VO0FHs3MDTmw8/rf2zifM i7KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ujArdU0a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id bc7si2200282plb.108.2019.06.21.03.35.32; Fri, 21 Jun 2019 03:35:47 -0700 (PDT) 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; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ujArdU0a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726732AbfFUKdc (ORCPT + 99 others); Fri, 21 Jun 2019 06:33:32 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37985 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbfFUKda (ORCPT ); Fri, 21 Jun 2019 06:33:30 -0400 Received: by mail-pl1-f195.google.com with SMTP id g4so2790721plb.5; Fri, 21 Jun 2019 03:33:30 -0700 (PDT) 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=zpskMPE9OKTdD4zPuyxeU/1TLb1myVFguUVGtb+4nAs=; b=ujArdU0ao9KvztpXXnIF0b/LNyDio8E3uB+CEa6q3s6SF2q7uWFkyxZY6K0BXkYkaT gQuZ9M1xYi+7pvPv4JV9S2nhknsMNsPkAZodbNReTUOeyXwkW0lC40jbjeKJq0wOJINA F0aJl7OpQvlaL9qlVodOPkymvBUwtWP9uWxQv9Qr6JFcfL5DA4XAkH3AzK7GSvML1JlM GlkVBpYFyFdR892j3FBITgAEDKil0/4jyy7lTJipYEwOrUH64iKgYCK9//ocU0fmf2Xq Mm5nySCfdafySz/P8ePI1hzYDozeoW6xqmwpCZgeJlWXoROtDiqQnILkpP7pMOvcV2PI jaag== 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=zpskMPE9OKTdD4zPuyxeU/1TLb1myVFguUVGtb+4nAs=; b=uf54tpppuHkwdL/mKRYonQITYKfyWmjEUrTla8KW5JTWetZByOkRPNC6zUlaXxgWrw nJCHLV0pU1AkaKeDtFWOSGIky6zOuAox91iiORlxYHJIgQKCvC7LiKoqs4F5MkPjf0sY nVUNqrwsAfaEL72yvXByn2hL39qOlEnoW/sFe0aJRF2NuYcfxfCCFYYPEnLSXX0QPhzz pQYrD+ad9ltWM/ynqQQ1J8kjJFZxjWvPrtZ8d0HFsJVrixGTL5atvxflXlIGSACpsQBa 9Wr2RVeNg5Y6vzds0W920LJuq7MjfEcPJOndJLUsw9Y3QxKXbyJBfUXLSnlB48PFNqXd 41lA== X-Gm-Message-State: APjAAAXMSl4xJ63wAxx6ehsIwGwRmppoLiL1Fc3jORQCn4UKVJs3oxi4 GECBSQ8nYXpx0f5hU8PJDY3ZuGzPHv+/Mr8k9khtAQVi X-Received: by 2002:a17:902:ab90:: with SMTP id f16mr127848301plr.262.1561113209896; Fri, 21 Jun 2019 03:33:29 -0700 (PDT) MIME-Version: 1.0 References: <4cd2ece080041d8545cc2f3e86cb1ff7c8a91f5b.1561110859.git.mchehab+samsung@kernel.org> In-Reply-To: <4cd2ece080041d8545cc2f3e86cb1ff7c8a91f5b.1561110859.git.mchehab+samsung@kernel.org> From: Andy Shevchenko Date: Fri, 21 Jun 2019 13:33:18 +0300 Message-ID: Subject: Re: [PATCH] ABI: sysfs-driver-mlxreg-io: fix the what fields To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , Greg Kroah-Hartman , Mauro Carvalho Chehab , Linux Kernel Mailing List , Jonathan Corbet , "Darren Hart (VMware)" , Vadim Pasternak Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 21, 2019 at 12:54 PM Mauro Carvalho Chehab wrote: > > The author of this file should be given an award for creativity: > the What: fields on this file technically fulfills the description > at README. Yet, the way it is, it can't be parsed on a script, > and if someone would try to do something like: > > grep hwmon*/jtag_enable > > It wouldn't find anything. > > Fix the What fields in a way that it can be parseable by a > script and other search tools. > Acked-by: Andy Shevchenko Thanks, Mauro, for fixing this. > Signed-off-by: Mauro Carvalho Chehab > --- > .../ABI/stable/sysfs-driver-mlxreg-io | 45 ++++++++----------- > 1 file changed, 19 insertions(+), 26 deletions(-) > > diff --git a/Documentation/ABI/stable/sysfs-driver-mlxreg-io b/Documentation/ABI/stable/sysfs-driver-mlxreg-io > index 156319fc5b80..3544968f43cc 100644 > --- a/Documentation/ABI/stable/sysfs-driver-mlxreg-io > +++ b/Documentation/ABI/stable/sysfs-driver-mlxreg-io > @@ -1,5 +1,4 @@ > -What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > - asic_health > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/asic_health > > Date: June 2018 > KernelVersion: 4.19 > @@ -9,9 +8,8 @@ Description: This file shows ASIC health status. The possible values are: > > The files are read only. > > -What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > - cpld1_version > - cpld2_version > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_version > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_version > Date: June 2018 > KernelVersion: 4.19 > Contact: Vadim Pasternak > @@ -20,8 +18,7 @@ Description: These files show with which CPLD versions have been burned > > The files are read only. > > -What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > - fan_dir > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/fan_dir > > Date: December 2018 > KernelVersion: 5.0 > @@ -32,8 +29,7 @@ Description: This file shows the system fans direction: > > The files are read only. > > -What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > - jtag_enable > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable > > Date: November 2018 > KernelVersion: 5.0 > @@ -43,8 +39,7 @@ Description: These files show with which CPLD versions have been burned > > The files are read only. > > -What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > - jtag_enable > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable > > Date: November 2018 > KernelVersion: 5.0 > @@ -87,16 +82,15 @@ Description: These files allow asserting system power cycling, switching > > The files are write only. > > -What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > - reset_aux_pwr_or_ref > - reset_asic_thermal > - reset_hotswap_or_halt > - reset_hotswap_or_wd > - reset_fw_reset > - reset_long_pb > - reset_main_pwr_fail > - reset_short_pb > - reset_sw_reset > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_aux_pwr_or_ref > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_asic_thermal > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_hotswap_or_halt > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_hotswap_or_wd > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_fw_reset > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_long_pb > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_main_pwr_fail > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_short_pb > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sw_reset > Date: June 2018 > KernelVersion: 4.19 > Contact: Vadim Pasternak > @@ -110,11 +104,10 @@ Description: These files show the system reset cause, as following: power > > The files are read only. > > -What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > - reset_comex_pwr_fail > - reset_from_comex > - reset_system > - reset_voltmon_upgrade_fail > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_pwr_fail > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_from_comex > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_system > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_voltmon_upgrade_fail > > Date: November 2018 > KernelVersion: 5.0 > -- > 2.21.0 > -- With Best Regards, Andy Shevchenko