fixup machid workaround, generate uImage manually
[openwrt.git] / target / linux / orion / patches / 008-top-level_irqs_are_level-triggered.patch
1 Make it clear that Orion top-level IRQs are level-triggered. This
2 means that we don't need an ->ack() handler, or at least, we don't
3 need the ->ack() handler (or the acking part of the ->mask_ack()
4 handler) to actually do anything.
5
6 Given that, we might as well point our ->mask_ack() handler at the
7 ->mask() handler instead of providing a dummy ->ack() handler, since
8 providing a ->mask_ack() handler on level IRQ sources will prevent
9 ->ack() from ever being called.
10
11 Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
12 ---
13 arch/arm/plat-orion/irq.c | 3 ++-
14 1 files changed, 2 insertions(+), 1 deletions(-)
15
16 --- a/arch/arm/plat-orion/irq.c
17 +++ b/arch/arm/plat-orion/irq.c
18 @@ -36,8 +36,8 @@
19
20 static struct irq_chip orion_irq_chip = {
21 .name = "orion_irq",
22 - .ack = orion_irq_mask,
23 .mask = orion_irq_mask,
24 + .mask_ack = orion_irq_mask,
25 .unmask = orion_irq_unmask,
26 };
27
28 @@ -59,6 +59,7 @@
29 set_irq_chip(irq, &orion_irq_chip);
30 set_irq_chip_data(irq, maskaddr);
31 set_irq_handler(irq, handle_level_irq);
32 + irq_desc[irq].status |= IRQ_LEVEL;
33 set_irq_flags(irq, IRQF_VALID);
34 }
35 }
This page took 0.045799 seconds and 5 git commands to generate.