aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm63xx/patches-5.10/327-irqchip-bcm6345-periph-clear-on-init.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2021-02-17 19:07:23 +0100
committerÁlvaro Fernández Rojas <noltari@gmail.com>2021-02-17 20:40:16 +0100
commitf323dec4f866d9ea75eae11c6762d0144d100628 (patch)
treec40f33e9a89e935b32e6a1520f02019200e7cc17 /target/linux/bcm63xx/patches-5.10/327-irqchip-bcm6345-periph-clear-on-init.patch
parent5bb9954826229782d4d285d65dfcca8a1c9e20d9 (diff)
downloadupstream-f323dec4f866d9ea75eae11c6762d0144d100628.tar.gz
upstream-f323dec4f866d9ea75eae11c6762d0144d100628.tar.bz2
upstream-f323dec4f866d9ea75eae11c6762d0144d100628.zip
bcm63xx: add kernel 5.10 support
Runtime-tested on Comtrend AR-5387un. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm63xx/patches-5.10/327-irqchip-bcm6345-periph-clear-on-init.patch')
-rw-r--r--target/linux/bcm63xx/patches-5.10/327-irqchip-bcm6345-periph-clear-on-init.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/bcm63xx/patches-5.10/327-irqchip-bcm6345-periph-clear-on-init.patch b/target/linux/bcm63xx/patches-5.10/327-irqchip-bcm6345-periph-clear-on-init.patch
new file mode 100644
index 0000000000..a878b34b21
--- /dev/null
+++ b/target/linux/bcm63xx/patches-5.10/327-irqchip-bcm6345-periph-clear-on-init.patch
@@ -0,0 +1,12 @@
+--- 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);