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)
commit2286ade07d74498a62c0ad067a79ca8dcc04016f
treec73bf76b57dfab8e4dd46b7e1f02733e7743ac20
parent9806d1b895f42c919620539b8e7621d73ea6d60d
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