scsi: ufs: core: Add sysfs node for UFS RTC update
authorBean Huo <beanhuo@micron.com>
Tue, 12 Dec 2023 22:08:25 +0000 (23:08 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Dec 2023 04:16:12 +0000 (23:16 -0500)
commit838f595a567257e3ac0ac33cdb6bb644ca326cc1
treeb2b3a8d8b4e0fb149a901d9bf843ac2092221b5a
parent6bf999e0eb41850d5c857102535d5c53b2ede224
scsi: ufs: core: Add sysfs node for UFS RTC update

Introduce a sysfs node named 'rtc_update_ms' within the kernel, enabling
user to adjust the RTC periodic update frequency to suit the specific
requirements of the system and UFS. Also, this patch allows the user to
disable/enable periodic update RTC in the UFS idle time.

Signed-off-by: Bean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20231212220825.85255-4-beanhuo@iokpp.de
Acked-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Documentation/ABI/testing/sysfs-driver-ufs
drivers/ufs/core/ufs-sysfs.c
drivers/ufs/core/ufshcd.c
include/ufs/ufs.h