openwrt/target/linux/bcm63xx/patches-5.15/327-irqchip-bcm6345-periph-clear-on-init.patch
Álvaro Fernández Rojas 2317a7426e bcm63xx: add linux v5.15 support
Build system: x86_64
Build-tested: generic, smp
Run-tested: generic/AR-5387un, smp/VR-3032u

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-05-20 15:53:16 +02:00

13 lines
383 B
Diff

--- a/drivers/irqchip/irq-bcm6345-periph.c
+++ b/drivers/irqchip/irq-bcm6345-periph.c
@@ -240,6 +240,9 @@ static int __init __bcm6345_periph_intc_
/* route all interrupts to line 0 by default */
if (i == 0)
block->mask_cache[w] = 0xffffffff;
+
+ /* mask all interrupts */
+ __raw_writel(0, block->en_reg[w]);
}
irq_set_handler_data(block->parent_irq, data);