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

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
...@@ -371,9 +371,8 @@ static void mobiveil_pcie_isr(struct irq_desc *desc) ...@@ -371,9 +371,8 @@ static void mobiveil_pcie_isr(struct irq_desc *desc)
dev_err_ratelimited(dev, "unexpected IRQ, INT%d\n", dev_err_ratelimited(dev, "unexpected IRQ, INT%d\n",
bit); bit);
/* clear interrupt */ /* clear interrupt handled */
csr_writel(pcie, csr_writel(pcie, 1 << (PAB_INTX_START + bit),
shifted_status << PAB_INTX_START,
PAB_INTP_AMBA_MISC_STAT); PAB_INTP_AMBA_MISC_STAT);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment