Commit 8a4f9fea authored by Hou Zhiqiang's avatar Hou Zhiqiang Committed by Lorenzo Pieralisi
Browse files

PCI: mobiveil: Fix INTx interrupt clearing in mobiveil_pcie_isr()



The current INTx handling function clears all interrupts after
handling the first pending; this can potentially cause missing INTx
detection. Fix the code to clear only the handled INTx IRQ.

Fixes: 9af6bcb1 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver")
Signed-off-by: default avatarHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: default avatarMinghuan Lian <Minghuan.Lian@nxp.com>
Reviewed-by: default avatarSubrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>
Acked-by: default avatarKarthikeyan Mitran <m.karthikeyan@mobiveil.co.in>
Tested-by: default avatarKarthikeyan Mitran <m.karthikeyan@mobiveil.co.in>
parent 526c101d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -371,9 +371,8 @@ static void mobiveil_pcie_isr(struct irq_desc *desc)
					dev_err_ratelimited(dev, "unexpected IRQ, INT%d\n",
							    bit);

				/* clear interrupt */
				csr_writel(pcie,
					   shifted_status << PAB_INTX_START,
				/* clear interrupt handled */
				csr_writel(pcie, 1 << (PAB_INTX_START + bit),
					   PAB_INTP_AMBA_MISC_STAT);
			}