brcm63xx: rename target to bcm63xx
[openwrt/staging/wigyori.git] / target / linux / brcm2708 / patches-4.19 / 950-0101-ARM-Activate-FIQs-to-avoid-__irq_startup-warnings.patch
1 From ffa437377a6121234cd85d3bd2a8d8c43f0bedd5 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 11 Dec 2017 09:18:32 +0000
4 Subject: [PATCH] ARM: Activate FIQs to avoid __irq_startup warnings
5
6 There is a new test in __irq_startup that the IRQ is activated, which
7 hasn't been the case for FIQs since they bypass some of the usual setup.
8
9 Augment enable_fiq to include a call to irq_activate to avoid the
10 warning.
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
13 ---
14 arch/arm/kernel/fiq.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17 --- a/arch/arm/kernel/fiq.c
18 +++ b/arch/arm/kernel/fiq.c
19 @@ -56,6 +56,8 @@
20 static unsigned long dfl_fiq_insn;
21 static struct pt_regs dfl_fiq_regs;
22
23 +extern int irq_activate(struct irq_desc *desc);
24 +
25 /* Default reacquire function
26 * - we always relinquish FIQ control
27 * - we always reacquire FIQ control
28 @@ -140,6 +142,8 @@ static int fiq_start;
29
30 void enable_fiq(int fiq)
31 {
32 + struct irq_desc *desc = irq_to_desc(fiq + fiq_start);
33 + irq_activate(desc);
34 enable_irq(fiq + fiq_start);
35 }
36