scsi: ufs-qcom: resume ICE driver after clock ungating
UFS core driver may power collapse the UFS host controller during clock gating hence we might loose some of the ICE register configuration. In order to restore ICE register configuration, we should call ICE driver's resume callback after ungating UFS clocks. Change-Id: I722a8037d81222c2cd493ebbe608a106f47cedfd Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
This commit is contained in:
parent
ee63b346eb
commit
e90b56093b
1 changed files with 8 additions and 0 deletions
|
@ -1280,7 +1280,15 @@ static int ufs_qcom_setup_clocks(struct ufs_hba *hba, bool on,
|
|||
vote = host->bus_vote.saved_vote;
|
||||
if (vote == host->bus_vote.min_bw_vote)
|
||||
ufs_qcom_update_bus_bw_vote(host);
|
||||
|
||||
err = ufs_qcom_ice_resume(host);
|
||||
if (err)
|
||||
goto out;
|
||||
} else {
|
||||
err = ufs_qcom_ice_suspend(host);
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
/* M-PHY RMMI interface clocks can be turned off */
|
||||
ufs_qcom_phy_disable_iface_clk(host->generic_phy);
|
||||
if (!ufs_qcom_is_link_active(hba)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue