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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:43 +0000 (10:29 +0200)
commitbd7e06d6d711bd22292d1caab1880e2636f67772
treeec59c669dfb6aae7736778d46c024826aa0611d6
parent6d779793a904487c5add154a5b2dcbd82f08d92a
scsi: ufs: core: Do not put UFS power into LPM if link is broken

[ Upstream commit 23043dd87b153d02eaf676e752d32429be5e5126 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/ufs/ufshcd.c