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

Commit 76c91409 authored by Tony Truong's avatar Tony Truong
Browse files

msm: pcie: control when PCIe MSI driver can access SNPS registers



It is possible PCIe MSI driver will try to access PCIe Synopsys
MSI registers while there is no clock provided. Have PCIe core
driver control when PCIe MSI driver can access such registers.

Change-Id: I74e5fd27a7af4a84eb645d91a3eff890cf3d84d0
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent db8206e6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4180,6 +4180,9 @@ static void msm_pcie_disable(struct msm_pcie_dev_t *dev, u32 options)
		return;
	}

	/* suspend access to MSI register. resume access in msm_msi_config */
	msm_msi_config_access(dev_get_msi_domain(&dev->dev->dev), false);

	dev->link_status = MSM_PCIE_LINK_DISABLED;
	dev->power_on = false;
	dev->link_turned_off_counter++;