summaryrefslogtreecommitdiffstats
path: root/include/ufs
diff options
context:
space:
mode:
authorBean Huo <beanhuo@micron.com>2023-12-12 23:08:25 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2023-12-13 23:16:12 -0500
commit838f595a567257e3ac0ac33cdb6bb644ca326cc1 (patch)
treeb2b3a8d8b4e0fb149a901d9bf843ac2092221b5a /include/ufs
parent6bf999e0eb41850d5c857102535d5c53b2ede224 (diff)
downloadlinux-stable-838f595a567257e3ac0ac33cdb6bb644ca326cc1.tar.gz
linux-stable-838f595a567257e3ac0ac33cdb6bb644ca326cc1.tar.bz2
linux-stable-838f595a567257e3ac0ac33cdb6bb644ca326cc1.zip
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>
Diffstat (limited to 'include/ufs')
-rw-r--r--include/ufs/ufs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h
index 7e7169d94596..b6003749bc83 100644
--- a/include/ufs/ufs.h
+++ b/include/ufs/ufs.h
@@ -591,6 +591,7 @@ struct ufs_dev_info {
/* UFS RTC */
enum ufs_rtc_time rtc_type;
time64_t rtc_time_baseline;
+ u32 rtc_update_period;
};
/*