]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Fix system suspend status
authorStanley Chu <stanley.chu@mediatek.com>
Mon, 7 Jan 2019 14:19:34 +0000 (22:19 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Jan 2019 03:16:37 +0000 (22:16 -0500)
commit9c1f9216c1c5e93b6e374b62a669e0bed4c2bf81
treee140c5f363254404f6bdbbc7497ee45650cc1ac4
parentd0919b492e8983aa88e8c94282754f7014196dcb
scsi: ufs: Fix system suspend status

hba->is_sys_suspended is set after successful system suspend but
not clear after successful system resume.

According to current behavior, hba->is_sys_suspended will not be set if
host is runtime-suspended but not system-suspended. Thus we shall aligh the
same policy: clear this flag even if host remains runtime-suspended after
ufshcd_system_resume is successfully returned.

Simply fix this flag to correct host status logs.

Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c