mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 20:03:33 -04:00
Merge "msm: pcie: scale CX and rate change after DRV resume"
This commit is contained in:
commit
7b7e4e4f1d
1 changed files with 8 additions and 0 deletions
|
|
@ -6917,6 +6917,14 @@ static int msm_pcie_drv_resume(struct msm_pcie_dev_t *pcie_dev)
|
|||
|
||||
msm_pcie_scale_link_bandwidth(pcie_dev, current_link_speed);
|
||||
|
||||
/* scale CX and rate change based on current GEN speed */
|
||||
current_link_speed = readl_relaxed(pcie_dev->dm_core +
|
||||
PCIE20_CAP_LINKCTRLSTATUS);
|
||||
current_link_speed = ((current_link_speed >> 16) &
|
||||
PCI_EXP_LNKSTA_CLS);
|
||||
|
||||
msm_pcie_scale_link_bandwidth(pcie_dev, current_link_speed);
|
||||
|
||||
/* always ungate clkreq */
|
||||
msm_pcie_write_reg_field(pcie_dev->parf,
|
||||
PCIE20_PARF_CLKREQ_OVERRIDE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue