aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-aardvark.c
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2022-01-10 01:50:00 +0000
committerLorenzo Pieralisi <[email protected]>2022-02-08 10:41:43 +0000
commit51f96e287c6f003d3bb29672811c757c5fbf0028 (patch)
tree6a300ed44dec18502d45b1f1d69eaa6efdb5fd1f /drivers/pci/controller/pci-aardvark.c
parentPCI: aardvark: Rewrite IRQ code to chained IRQ handler (diff)
downloadkernel-51f96e287c6f003d3bb29672811c757c5fbf0028.tar.gz
kernel-51f96e287c6f003d3bb29672811c757c5fbf0028.zip
PCI: aardvark: Check return value of generic_handle_domain_irq() when processing INTx IRQ
It is possible that we receive spurious INTx interrupt. Check for the return value of generic_handle_domain_irq() when processing INTx IRQ. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Marek Behún <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-aardvark.c')
-rw-r--r--drivers/pci/controller/pci-aardvark.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c
index d7ee7a22c206..0fb3847bdc4e 100644
--- a/drivers/pci/controller/pci-aardvark.c
+++ b/drivers/pci/controller/pci-aardvark.c
@@ -1425,7 +1425,9 @@ static void advk_pcie_handle_int(struct advk_pcie *pcie)
advk_writel(pcie, PCIE_ISR1_INTX_ASSERT(i),
PCIE_ISR1_REG);
- generic_handle_domain_irq(pcie->irq_domain, i);
+ if (generic_handle_domain_irq(pcie->irq_domain, i) == -EINVAL)
+ dev_err_ratelimited(&pcie->pdev->dev, "unexpected INT%c IRQ\n",
+ (char)i + 'A');
}
}