mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 11:01:06 -04:00
scsi: ufs: Avoid to call REQ_CLKS_OFF to CLKS_OFF
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>
This commit is contained in:
committed by
Martin K. Petersen
parent
cf4d4d8ebd
commit
fd62de114f
@@ -1755,7 +1755,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