Merge "Revert "scsi: ufs-qcom: Abort phy power on sequence if clks are off""

This commit is contained in:
qctecmdr 2021-11-03 03:08:10 -07:00 • committed by Gerrit - the friendly Code Review server
commit 64a2546eea

View file

@ -494,16 +494,6 @@ static int ufs_qcom_phy_power_on(struct ufs_hba *hba)
int ret = 0;
mutex_lock(&host->phy_mutex);
if (hba->curr_dev_pwr_mode == UFS_POWERDOWN_PWR_MODE &&
hba->clk_gating.state != CLKS_ON) {
ret = -1;
dev_err(hba->dev, "%s: abort phy power on, clks are off %d\n",
__func__, ret);
mutex_unlock(&host->phy_mutex);
return ret;
}
if (!host->is_phy_pwr_on) {
ret = phy_power_on(phy);
if (ret) {