Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp476711ybi; Fri, 21 Jun 2019 02:55:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRKb8SyZEnVfKp4zVb3XgaEj1ubmozwh/YYzwCIPVl9p6uCcINlrPUa9ZUMlviuY0G87CU X-Received: by 2002:a63:a506:: with SMTP id n6mr12032119pgf.161.1561110939146; Fri, 21 Jun 2019 02:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561110939; cv=none; d=google.com; s=arc-20160816; b=zhD72nQ6jYjgZGDpBpwXd57RyIuoU9UMmJOUqz7f5+zCBThMOBNiY3MacvWxX6PCvh ZgYsUk7YMKU0Jaj2D7Xdvhi85HaJ/jPs9PUT/6fTDmfmJrPploYXFP75dj7hs9ncw6gV HE//asSiwH3MYQbdB+ImcypuARoCsxQfPS1T4IFUltVHf6E/eIW38glLheF7zDVZW2e8 mBUl7BhrTryFN5qnChizChrVpNb7OznThYLQbkYS7AogLQeBCf2iLOhoq9ryfWBhiRCr xJ6j4xyBssaRD4QAAz006pI9Iuc2nXhmnhIbFofBx7C13634sQMJxB3JCGvdafi30Guc duTA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=wI0EAuMFs+aVQKSucBM2sTBK5ECXZZNvaUXFQdbT4O4=; b=e8v1DZ4abR3bkzwyB/ylxBsDFcp+ZDjj7P8S2o8/bQXmmFaIxF7erryiEqvoe/SgNK yxgavM1vqwdHqZBqeVA92Iijo+J2wgtLWRGR+MhbuS/N9j1LqBsnTUlIWZVD488Pydju MI04rTWH6pLVh/e4n/VWwQmhLd/97gkKFZ5ds3aNIHaTsprgt06Jyr844h0tLthYB9fm mRFRywEjuJV1y1UlyOBJf/cec07KYIVRdrXXhcefvg5jAuvcUVmyQFkyddYEY5Ael76V eHMvax4VC1LpHmZ/9hyIf3ghLP/L8qi6wFWC80AmC4djYv68g55YPH1Eg2ada+5Q1HTW dMOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JTpScT0W; 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 n75si2452696pjc.27.2019.06.21.02.55.24; Fri, 21 Jun 2019 02:55:39 -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=JTpScT0W; 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 S1727254AbfFUJys (ORCPT + 99 others); Fri, 21 Jun 2019 05:54:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37802 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfFUJyl (ORCPT ); Fri, 21 Jun 2019 05:54:41 -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: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:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wI0EAuMFs+aVQKSucBM2sTBK5ECXZZNvaUXFQdbT4O4=; b=JTpScT0W9/QGxBnSHrK8kC9QS aYRHK2SzsuZ0aEBEd2JXakX09pxNeNmdMLQwDXfKgKiNJ4sgL5+sSOi+wxCfxv93JrmGLykMlB3TF qR/u7xEOqs6xi+eg8aYmgmQynikRZ8Qwkz8sjspygzR9VY9tSEzcGDMCDkgfI1cc8CK5tZT32gv06 +XJyPBGucyAXyP+jIVVkNn8TzjvzNkSQ06cJmJNyKscyIrYuyn02iI6lmbCX/S5eK2P+Dzh44ZcCE neX1lft7VJqjm9F+0rbes8JjHwZVQud+d1CfOFWSm/FbV6llKbqFm8wT2FUfbqpWDO1PzWsTNFAv0 r8D9/bm8g==; Received: from [177.97.20.138] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1heGFa-0004le-Q7; Fri, 21 Jun 2019 09:54:30 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1heGFX-0004dt-D3; Fri, 21 Jun 2019 06:54:27 -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 , "Darren Hart (VMware)" , Vadim Pasternak , Andy Shevchenko Subject: [PATCH] ABI: sysfs-driver-mlxreg-io: fix the what fields Date: Fri, 21 Jun 2019 06:54:25 -0300 Message-Id: <4cd2ece080041d8545cc2f3e86cb1ff7c8a91f5b.1561110859.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 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