scsi: ufs: core: Do not put UFS power into LPM if link is broken
authorCan Guo <cang@codeaurora.org>
Mon, 26 Apr 2021 03:48:38 +0000 (20:48 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Apr 2021 03:15:17 +0000 (23:15 -0400)
commit23043dd87b153d02eaf676e752d32429be5e5126
tree48e68933ec8d8610915d5e1e8fc113f6bb3f2a38
parentfcb16d9a8ecf1e9bfced0fc654ea4e2caa7517f4
scsi: ufs: core: Do not put UFS power into LPM if link is broken

During resume, if link is broken due to AH8 failure, make sure
ufshcd_resume() does not put UFS power back into LPM.

Link: https://lore.kernel.org/r/1619408921-30426-2-git-send-email-cang@codeaurora.org
Fixes: 4db7a2360597 ("scsi: ufs: Fix concurrency of error handler and other error recovery paths")
Reviewed-by: Daejun Park <daejun7.park@samsung.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c