Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
24 lines
794 B
Diff
24 lines
794 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Fri, 4 Sep 2020 18:33:27 +0200
|
|
Subject: [PATCH] pcie-mediatek: fix clearing interrupt status
|
|
|
|
Clearing the status needs to happen after running the handler, otherwise
|
|
we will get an extra spurious interrupt after the cause has been cleared
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/drivers/pci/controller/pcie-mediatek.c
|
|
+++ b/drivers/pci/controller/pcie-mediatek.c
|
|
@@ -607,9 +607,9 @@ static void mtk_pcie_intr_handler(struct
|
|
if (status & INTX_MASK) {
|
|
for_each_set_bit_from(bit, &status, PCI_NUM_INTX + INTX_SHIFT) {
|
|
/* Clear the INTx */
|
|
- writel(1 << bit, port->base + PCIE_INT_STATUS);
|
|
generic_handle_domain_irq(port->irq_domain,
|
|
bit - INTX_SHIFT);
|
|
+ writel(1 << bit, port->base + PCIE_INT_STATUS);
|
|
}
|
|
}
|
|
|