scsi: ufshcd: Flush exception event before suspend
Exception event can be raised by the device when system suspend is in progress. This will result in unclocked register access in exception event handler as clocks will be turned off during suspend. This change makes sure to flush exception event handler work in suspend before disabling clocks to avoid unclocked register access issue. Change-Id: I5a089a0387790a12f4cc3213c75e9677467a2a07 Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
This commit is contained in:
parent
b95d667366
commit
e6b1f12020
1 changed files with 1 additions and 0 deletions
|
@ -8708,6 +8708,7 @@ static int ufshcd_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op)
|
||||||
goto enable_gating;
|
goto enable_gating;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flush_work(&hba->eeh_work);
|
||||||
ret = ufshcd_link_state_transition(hba, req_link_state, 1);
|
ret = ufshcd_link_state_transition(hba, req_link_state, 1);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto set_dev_active;
|
goto set_dev_active;
|
||||||
|
|
Loading…
Add table
Reference in a new issue