mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "msm: pcie: Disable access to MSI register during drv_suspend"
This commit is contained in:
commit
3bf9fa3150
1 changed files with 6 additions and 0 deletions
|
|
@ -6851,6 +6851,9 @@ static int msm_pcie_drv_resume(struct msm_pcie_dev_t *pcie_dev)
|
|||
spin_unlock_irq(&pcie_dev->cfg_lock);
|
||||
pcie_dev->link_status = MSM_PCIE_LINK_ENABLED;
|
||||
|
||||
/* resume access to MSI register as link is resumed */
|
||||
msm_msi_config_access(dev_get_msi_domain(&pcie_dev->dev->dev), true);
|
||||
|
||||
enable_irq(pcie_dev->irq[MSM_PCIE_INT_GLOBAL_INT].num);
|
||||
|
||||
mutex_unlock(&pcie_dev->setup_lock);
|
||||
|
|
@ -6886,6 +6889,9 @@ static int msm_pcie_drv_suspend(struct msm_pcie_dev_t *pcie_dev,
|
|||
goto out;
|
||||
}
|
||||
|
||||
/* suspend access to MSI register. resume access in drv_resume */
|
||||
msm_msi_config_access(dev_get_msi_domain(&pcie_dev->dev->dev), false);
|
||||
|
||||
pcie_dev->user_suspend = true;
|
||||
set_bit(pcie_dev->rc_idx, &pcie_drv.rc_drv_enabled);
|
||||
spin_lock_irq(&pcie_dev->cfg_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue