d1: add new target
[openwrt/staging/mans0n.git] / target / linux / d1 / patches-6.1 / 0012-irqchip-sifive-plic-Enable-oneshot-safe-threaded-EOI.patch
1 From 1fbe96ec05c41b313b4e7cc4b39b191b4a3f7540 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Sat, 7 May 2022 18:38:34 -0500
4 Subject: [PATCH 012/117] irqchip/sifive-plic: Enable oneshot-safe threaded
5 EOIs
6
7 Signed-off-by: Samuel Holland <samuel@sholland.org>
8 ---
9 drivers/irqchip/irq-sifive-plic.c | 4 +++-
10 1 file changed, 3 insertions(+), 1 deletion(-)
11
12 --- a/drivers/irqchip/irq-sifive-plic.c
13 +++ b/drivers/irqchip/irq-sifive-plic.c
14 @@ -201,7 +201,9 @@ static struct irq_chip plic_chip = {
15 .irq_set_affinity = plic_set_affinity,
16 #endif
17 .irq_set_type = plic_irq_set_type,
18 - .flags = IRQCHIP_AFFINITY_PRE_STARTUP,
19 + .flags = IRQCHIP_ONESHOT_SAFE |
20 + IRQCHIP_EOI_THREADED |
21 + IRQCHIP_AFFINITY_PRE_STARTUP,
22 };
23
24 static int plic_irq_set_type(struct irq_data *d, unsigned int type)