On Wed, Jan 29, 2020 at 03:39:01PM +0800, Stanley Chu wrote:
Auto-Hibern8 may be disabled by some vendors or sysfs in runtime even if Auto-Hibern8 capability is supported by host. If Auto-Hibern8 capability is supported by host but not actually enabled, Auto-Hibern8 error shall not happen.
To fix this, provide a way to detect if Auto-Hibern8 is actually enabled first, and bypass Auto-Hibern8 disabling case in ufshcd_is_auto_hibern8_error().
Fixes: 8217444 ("scsi: ufs: Add error-handling of Auto-Hibernate")
This should be: Fixes: 821744403913 ("scsi: ufs: Add error-handling of Auto-Hibernate")