]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufshcd: Allow specifying an Auto-Hibernate Timer value of zero
authorBao D. Nguyen <nguyenb@codeaurora.org>
Sat, 29 Aug 2020 01:05:13 +0000 (18:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Sep 2020 01:26:15 +0000 (21:26 -0400)
commit9c1d66b2318e507a2289d4fa1f7d405ff7c7980d
treed7332087ced117d834686b3e060a7dbed727ad7d
parent1822eda1509b65e3edf11834d0ca272b2b6f176a
scsi: ufshcd: Allow specifying an Auto-Hibernate Timer value of zero

Setting the Auto-Hibernate Timer to zero is a valid setting which indicates
the Auto-Hibernate feature being disabled. Correctly support this setting.

In addition, when the timer value is queried from sysfs, read from the host
controller's register and return that value instead of using the RAM value.

Link: https://lore.kernel.org/r/b141cfcd7998b8933635828b56fbb64f8ad4d175.1598661071.git.nguyenb@codeaurora.org
Acked-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-sysfs.c
drivers/scsi/ufs/ufshcd.c