]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: core: Print UFSHCD capabilities in controller's sysfs node
authorDaniil Lunev <dlunev@chromium.org>
Sun, 28 Aug 2022 22:18:58 +0000 (08:18 +1000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Sep 2022 02:18:06 +0000 (22:18 -0400)
commitf9ae0b994bdadd6a8ee226a5d209aeff7336cfc8
treec73bf76b57dfab8e4dd46b7e1f02733e7743ac20
parent97dd845f4d68bacf7d4a7d4db77c8018d1e8aaa7
scsi: ufs: core: Print UFSHCD capabilities in controller's sysfs node

Userspace may want to manually control when the data should go into
WriteBooster buffer. The control happens via "wb_on" node, but presently,
there is no simple way to check if WriteBooster is supported and
enabled.

Expose the Write Booster and Clock Scaling capabilities to be able to
determine if the Write Booster is available and if its manual control is
blocked by Clock Scaling mechanism.

Link: https://lore.kernel.org/r/20220829081845.v8.1.Ibf9efc9be50783eeee55befa2270b7d38552354c@changeid
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Daniil Lunev <dlunev@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Documentation/ABI/testing/sysfs-driver-ufs
drivers/ufs/core/ufs-sysfs.c