[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250114093512.151019-3-avri.altman@wdc.com>
Date: Tue, 14 Jan 2025 11:35:12 +0200
From: Avri Altman <avri.altman@....com>
To: "Martin K . Petersen" <martin.petersen@...cle.com>
Cc: linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org,
Guenter Roeck <linux@...ck-us.net>,
Bart Van Assche <bvanassche@....org>,
Avri Altman <avri.altman@....com>
Subject: [PATCH 2/2] scsi: ufs: hwmon: Add missing ABI documentation
This commit adds ABI documentation for the UFS hwmon driver, detailing
the sysfs attributes exposed by the driver. It includes the missing
temperature notification entries, that were added back in 2021.
The following sysfs attributes are documented:
- /sys/class/hwmon/hwmon*/temp*_input
- /sys/class/hwmon/hwmon*/temp*_crit
- /sys/class/hwmon/hwmon*/temp*_lcrit
- /sys/class/hwmon/hwmon*/temp*_enable
While at it, update a missing reference to the ufs ABI doc in the
MAINTAINERS file.
Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature notification support")
Signed-off-by: Avri Altman <avri.altman@....com>
---
.../ABI/testing/sysfs-driver-ufs-hwmon | 31 +++++++++++++++++++
MAINTAINERS | 2 ++
2 files changed, 33 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-driver-ufs-hwmon
diff --git a/Documentation/ABI/testing/sysfs-driver-ufs-hwmon b/Documentation/ABI/testing/sysfs-driver-ufs-hwmon
new file mode 100644
index 000000000000..a27a108ffd28
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-driver-ufs-hwmon
@@ -0,0 +1,31 @@
+What: /sys/class/hwmon/hwmon*/temp*_input
+Date: September 2021
+KernelVersion: 5.16
+Contact: avri.altman@....com
+Description:
+ Temperature input value in millidegrees Celsius.
+ Read-only.
+
+What: /sys/class/hwmon/hwmon*/temp*_crit
+Date: September 2021
+KernelVersion: 5.16
+Contact: avri.altman@....com
+Description:
+ Critical temperature value in millidegrees Celsius.
+ Read-only.
+
+What: /sys/class/hwmon/hwmon*/temp*_lcrit
+Date: September 2021
+KernelVersion: 5.16
+Contact: avri.altman@....com
+Description:
+ Lower critical temperature value in millidegrees Celsius.
+ Read-only.
+
+What: /sys/class/hwmon/hwmon*/temp*_enable
+Date: September 2021
+KernelVersion: 5.16
+Contact: avri.altman@....com
+Description:
+ Enable (1) or disable (0) this temperature sensor.
+ Read-write.
diff --git a/MAINTAINERS b/MAINTAINERS
index 838d3038e1ea..71a69551aee2 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -24070,6 +24070,8 @@ R: Avri Altman <avri.altman@....com>
R: Bart Van Assche <bvanassche@....org>
L: linux-scsi@...r.kernel.org
S: Supported
+F: Documentation/ABI/testing/sysfs-driver-ufs
+F: Documentation/ABI/testing/sysfs-driver-ufs-hwmon
F: Documentation/devicetree/bindings/ufs/
F: Documentation/scsi/ufs.rst
F: drivers/ufs/core/
--
2.25.1
Powered by blists - more mailing lists