]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
scsi: ABI: sysfs-driver-ufs: Add missing UFS sysfs attributes
authorZiqi Chen <quic_ziqichen@quicinc.com>
Thu, 13 Feb 2025 08:00:08 +0000 (16:00 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Feb 2025 03:07:17 +0000 (22:07 -0500)
Add UFS driver sysfs attributes clkscale_enable, clkgate_enable and
clkgate_delay_ms to this document.

Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
Link: https://lore.kernel.org/r/20250213080008.2984807-9-quic_ziqichen@quicinc.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Documentation/ABI/testing/sysfs-driver-ufs

index 5fa6655aee84090d302f64bd6a31b277018e230b..da8d1437d3f4b5d3c5986d7bf2d0e8d953c1a5a0 100644 (file)
@@ -1559,3 +1559,36 @@ Description:
                Symbol - HCMID. This file shows the UFSHCD manufacturer id.
                The Manufacturer ID is defined by JEDEC in JEDEC-JEP106.
                The file is read only.
+
+What:          /sys/bus/platform/drivers/ufshcd/*/clkscale_enable
+What:          /sys/bus/platform/devices/*.ufs/clkscale_enable
+Date:          January 2025
+Contact:       Ziqi Chen <quic_ziqichen@quicinc.com>
+Description:
+               This attribute shows whether the UFS clock scaling is enabled or not.
+               And it can be used to enable/disable the clock scaling by writing
+               1 or 0 to this attribute.
+
+               The attribute is read/write.
+
+What:          /sys/bus/platform/drivers/ufshcd/*/clkgate_enable
+What:          /sys/bus/platform/devices/*.ufs/clkgate_enable
+Date:          January 2025
+Contact:       Ziqi Chen <quic_ziqichen@quicinc.com>
+Description:
+               This attribute shows whether the UFS clock gating is enabled or not.
+               And it can be used to enable/disable the clock gating by writing
+               1 or 0 to this attribute.
+
+               The attribute is read/write.
+
+What:          /sys/bus/platform/drivers/ufshcd/*/clkgate_delay_ms
+What:          /sys/bus/platform/devices/*.ufs/clkgate_delay_ms
+Date:          January 2025
+Contact:       Ziqi Chen <quic_ziqichen@quicinc.com>
+Description:
+               This attribute shows and sets the number of milliseconds of idle time
+               before the UFS driver starts to perform clock gating. This can
+               prevent the UFS from frequently performing clock gating/ungating.
+
+               The attribute is read/write.