mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
msm: pcie: add PCIe GDSC disable/enable for DRV suspend/resume
As part of DRV suspend/resume, APPS vote for PCIe GDSC needs to be properly handled. Have PCIe bus driver disable/enable PCIe GDSC during DRV suspend/resume. Change-Id: I6c5f901b089f8684b6d1d909f8176d08e39f2264 Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
parent
b459044e6e
commit
47cf7dd8d0
1 changed files with 4 additions and 0 deletions
|
|
@ -6866,6 +6866,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)
|
||||
|
|
@ -7028,6 +7030,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue