Skip to content

Commit df7ae04

Browse files
Jaegeuk Kimgregkh
authored andcommitted
scsi: ufs: Avoid to call REQ_CLKS_OFF to CLKS_OFF
[ Upstream commit fd62de1 ] Once UFS is gated with CLKS_OFF, it should not call REQ_CLKS_OFF again. This can lead to hibern8_enter failure. Link: https://lore.kernel.org/r/20201117165839.1643377-2-jaegeuk@kernel.org Reviewed-by: Can Guo <cang@codeaurora.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 3897b71 commit df7ae04

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/scsi/ufs/ufshcd.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,8 @@ static void __ufshcd_release(struct ufs_hba *hba)
17521752
if (hba->clk_gating.active_reqs || hba->clk_gating.is_suspended ||
17531753
hba->ufshcd_state != UFSHCD_STATE_OPERATIONAL ||
17541754
ufshcd_any_tag_in_use(hba) || hba->outstanding_tasks ||
1755-
hba->active_uic_cmd || hba->uic_async_done)
1755+
hba->active_uic_cmd || hba->uic_async_done ||
1756+
hba->clk_gating.state == CLKS_OFF)
17561757
return;
17571758

17581759
hba->clk_gating.state = REQ_CLKS_OFF;

0 commit comments

Comments
 (0)