[PATCH 3/3] irqchip/sifive-plic: Enable oneshot-safe threaded EOIs
Samuel Holland
samuel at sholland.org
Sat Nov 26 15:41:34 PST 2022
This defers the EOI until the IRQ thread has finished, avoiding the need
to mask the IRQ while the thread is pending.
Signed-off-by: Samuel Holland <samuel at sholland.org>
---
drivers/irqchip/irq-sifive-plic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c
index ff47bd0dec45..d8fc3354b38c 100644
--- a/drivers/irqchip/irq-sifive-plic.c
+++ b/drivers/irqchip/irq-sifive-plic.c
@@ -203,6 +203,8 @@ static struct irq_chip plic_chip = {
#endif
.irq_set_type = plic_irq_set_type,
.flags = IRQCHIP_SKIP_SET_WAKE |
+ IRQCHIP_ONESHOT_SAFE |
+ IRQCHIP_EOI_THREADED |
IRQCHIP_AFFINITY_PRE_STARTUP,
};
--
2.37.4
More information about the linux-riscv
mailing list