Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bf9fa31 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 0b93e6ac d68a3490
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);