Merge "msm: pcie: Disable access to MSI register during drv_suspend"

This commit is contained in:
qctecmdr 2020-10-09 19:37:40 -07:00 • committed by Gerrit - the friendly Code Review server
commit 3bf9fa3150

View file

@ -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);