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

Commit e4cb90cb authored by Tony Truong's avatar Tony Truong
Browse files

msm: msi: correct HWIRQ mapping for all Synopsys MSI VIRQ



There is only 1 HWIRQ for all Synopsys MSI. Not all msi_irq
are correctly assigned with this HWIRQ. Correct the mappings for
all msi_irq (VIRQs).

Change-Id: I038462476e965a3fb2145962e0aa6ad23736536e
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent b44f3239
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -658,6 +658,8 @@ int msm_msi_init(struct device *dev)

	if (msi->type == MSM_MSI_TYPE_SNPS) {
		struct msm_msi_grp *msi_grp;
		/* all SNPS VIRQs are mapped to one PCIe MSI HWIRQ */
		u32 snps_hwirq = msi->grps[0].irqs[0].hwirq;

		for (i = 0; i < msi->nr_grps; i++) {
			msi_grp = &msi->grps[i];
@@ -681,7 +683,7 @@ int msm_msi_init(struct device *dev)
			msi_irq->grp = msi_grp;
			msi_irq->grp_index = index;
			msi_irq->pos = i;
			msi_irq->hwirq = msi_grp->irqs[0].hwirq;
			msi_irq->hwirq = snps_hwirq;
		}
	}