mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
scsi: ufs: Avoid to call REQ_CLKS_OFF to CLKS_OFF
[ Upstream commit fd62de114f ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3897b71e1a
commit
df7ae049e0
@@ -1752,7 +1752,8 @@ static void __ufshcd_release(struct ufs_hba *hba)
|
||||
if (hba->clk_gating.active_reqs || hba->clk_gating.is_suspended ||
|
||||
hba->ufshcd_state != UFSHCD_STATE_OPERATIONAL ||
|
||||
ufshcd_any_tag_in_use(hba) || hba->outstanding_tasks ||
|
||||
hba->active_uic_cmd || hba->uic_async_done)
|
||||
hba->active_uic_cmd || hba->uic_async_done ||
|
||||
hba->clk_gating.state == CLKS_OFF)
|
||||
return;
|
||||
|
||||
hba->clk_gating.state = REQ_CLKS_OFF;
|
||||
|
||||
Reference in New Issue
Block a user