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:
Subhash Jadavani 2015-08-06 18:28:46 -07:00 committed by David Keitel
parent ee63b346eb
commit e90b56093b

View file

@ -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)) {