Merge "msm: pcie: add PCIe GDSC disable/enable for DRV suspend/resume"

This commit is contained in:
qctecmdr 2020-04-11 21:14:43 -07:00 • committed by Gerrit - the friendly Code Review server
commit a4fa30e6a6

View file

@ -6839,6 +6839,8 @@ static int msm_pcie_drv_resume(struct msm_pcie_dev_t *pcie_dev)
msm_pcie_vreg_init(pcie_dev);
regulator_enable(pcie_dev->gdsc);
if (pcie_dev->icc_path) {
ret = icc_set_bw(pcie_dev->icc_path, ICC_AVG_BW, ICC_PEAK_BW);
if (ret)
@ -7001,6 +7003,8 @@ static int msm_pcie_drv_suspend(struct msm_pcie_dev_t *pcie_dev,
pcie_dev->rc_idx, ret);
}
regulator_disable(pcie_dev->gdsc);
msm_pcie_vreg_deinit(pcie_dev);
mutex_unlock(&pcie_dev->setup_lock);