]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit499f7a9660926c9176563bf8da22abf585b65e65
treed7332087ced117d834686b3e060a7dbed727ad7d
parent8c6572356646f700e1679d8f7eb2ab3a4eab678c
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