1 From a32b114d39a51c28eb22f742a6f66d71aa8915fa 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
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.
9 Augment enable_fiq to include a call to irq_activate to avoid the
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
14 arch/arm/kernel/fiq.c | 4 ++++
15 1 file changed, 4 insertions(+)
17 --- a/arch/arm/kernel/fiq.c
18 +++ b/arch/arm/kernel/fiq.c
20 static unsigned long dfl_fiq_insn;
21 static struct pt_regs dfl_fiq_regs;
23 +extern int irq_activate(struct irq_desc *desc);
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;
30 void enable_fiq(int fiq)
32 + struct irq_desc *desc = irq_to_desc(fiq + fiq_start);
34 enable_irq(fiq + fiq_start);