summary'>refs'>log'>treecommitdiff'>stats
path: '>root//'>sys-kernel/boest-v5.0.15//'>raspberrypi//0007-irq-bcm2836-Prevent-spurious-interrupts-and-trap-the.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/boest-v5.0.15/raspberrypi/0007-irq-bcm2836-Prevent-spurious-interrupts-and-trap-the.patch')
--rw-r--r--r--'>sys-kernel/boest-v5.0.15/raspberrypi/0007-irq-bcm2836-Prevent-spurious-interrupts-and-trap-the.patch2929
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-kernel/boest-v5.0.15/raspberrypi/0007-irq-bcm2836-Prevent-spurious-interrupts-and-trap-the.patch b/sys-kernel/boest-v5.0.15/raspberrypi/0007-irq-bcm2836-Prevent-spurious-interrupts-and-trap-the.patch
new file mode 100644
index 00000000..40cf7769
--- /dev/null
+++ b/sys-kernel/boest-v5.0.15/raspberrypi/0007-irq-bcm2836-Prevent-spurious-interrupts-and-trap-the.patch
@@ -0,0 +1,29 @@
+From 70142dfa949d037ec31e9d3db21ccda7d4192069 Mon Sep 17 00:00:00 2001
+From: Phil Elwell <phil@raspberrypi.org>
+Date: Fri, 4 Dec 2015 17:41:50 +0000
+Subject: [PATCH 007/194] irq-bcm2836: Prevent spurious interrupts, and trap
+ them early
+
+The old arch-specific IRQ macros included a dsb to ensure the
+write to clear the mailbox interrupt completed before returning
+from the interrupt. The BCM2836 irqchip driver needs the same
+precaution to avoid spurious interrupts.
+
+Spurious interrupts are still possible for other reasons,
+though, so trap them early.
+---
+ drivers/irqchip/irq-bcm2836.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c
+index 2038693f074c..597d36ba601e 100644
+--- a/drivers/irqchip/irq-bcm2836.c
++++ b/drivers/irqchip/irq-bcm2836.c
+@@ -135,6 +135,7 @@ __exception_irq_entry bcm2836_arm_irqchip_handle_irq(struct pt_regs *regs)
+ u32 ipi = ffs(mbox_val) - 1;
+
+ writel(1 << ipi, mailbox0);
++ dsb(sy);
+ handle_IPI(ipi, regs);
+ #endif
+ } else if (stat) {