Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp624563ybi; Fri, 21 Jun 2019 05:32:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzPmSmdUUPxcp2Wxqct7JQAO6kgvPftvXfyeOYUzRXc/MiRn23hC3npTAv1/eQm8Lbd/64 X-Received: by 2002:a65:41c6:: with SMTP id b6mr17851215pgq.399.1561120379006; Fri, 21 Jun 2019 05:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561120378; cv=none; d=google.com; s=arc-20160816; b=pT4XSUYuZt1yte66WStzRvDEOG74YIZeAQ37SYsUsGWJlwZzOWNXoJkpu28E+NB0kb GriWqjo1mJsICyhY2v/myq5P9QL+PINu1Yig4MTyyxuCcdd/hTEpXwc0gNb6QrvFTRRC vK9OsTjGVKYy2YPGHNAV/Udc+9U6w5xEJPorqt/ClCMD5Wiqy7TAzyz11JexApC0OgSt h5fDYv7RiledT7Gd/0e2h+hXXMgWZhrfPVtWdHYFn9wpJgUNZjJY3XtRQdLFxnzyV+rX QWBTDEl0fYPSZk2mLT/xT0MekZh24lFHLk9JW3KuaswA2G+eRMiq5qbaXX0mLP6diwjT W95Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wI0EAuMFs+aVQKSucBM2sTBK5ECXZZNvaUXFQdbT4O4=; b=yVsakNh1denVCsAEwwqk13qKis2Pj893xyhv/GiQ059W1Yo5FQZd6U0xUsrmFA4FdN nX1JH8uX/6p/o+grdhYPD/GGg6NLWgronmJ8abgkjYv6NaxDvKxN0fnwOOydhhxmI2qp xfL/N6k0+tcOTdAwusOKVMlExhLO9/ZJ1orn8vpx4dYLXnZcIcAm0xpEL1J4+i3kPkEq jQm1FT67njFsvplVfXYtxuanVmF4SG4P0puvGx1jz8zfbaWJTtBHXqL8CIuB9l3J+4D5 Cb+LRD6YTTZiTGSS9vpI/jzKaINCTkJlRJYfeaw53jkCvrpRCch5KtF+0/B0neKbJXjn 0vqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Z/Hrjvb2"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u20si2387239pgm.526.2019.06.21.05.32.43; Fri, 21 Jun 2019 05:32:58 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Z/Hrjvb2"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726880AbfFUMcS (ORCPT + 99 others); Fri, 21 Jun 2019 08:32:18 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34938 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbfFUMcK (ORCPT ); Fri, 21 Jun 2019 08:32:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wI0EAuMFs+aVQKSucBM2sTBK5ECXZZNvaUXFQdbT4O4=; b=Z/Hrjvb2vOrimlMt5mDPWKMSvI wQb8866/aqQwkc32XHik2Yc0WpWyMwMUlCLRyg7L0KB4uyFlM4jwWvK9vEHuG4dX/wsLsL0NPUrPg gjuNzpzbYj92/aoTKtILTblRlXMbJSgqFedfHrNFwkr342JgmEoFY4ghU2yhNELLp8325kEqbepp3 LtzrDRdylLk3oJSHFTK8m5f1BuBooT5nfheZJkASVjqe7jzZXTuwkWeeb82FCxHEDYvanKYpd32q6 31lGYOOH8vN27ZO0Rl9x8k1r5KXpNoeFwm1nm5PkUuu7gQ/uGA5lqQQ/TKDoBa8Uo0Pbh/WXOoUT/ jbipsuHA==; Received: from [177.97.20.138] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1heIiA-0003xP-G7; Fri, 21 Jun 2019 12:32:10 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1heIi7-0001Ez-RV; Fri, 21 Jun 2019 09:32:07 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH RFC 2/6] ABI: sysfs-driver-mlxreg-io: fix the what fields Date: Fri, 21 Jun 2019 09:32:02 -0300 Message-Id: <9893c06e102ebeba1d5110fec3fd4807f21c6181.1561118631.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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