[lantiq] fixes zyxel p2601hnfx
[openwrt.git] / target / linux / lantiq / patches-3.3 / 0063-MIPS-lantiq-irqs-were-not-cleared-properly-on-boot.patch
1 From 875a7139535da541aa2e9de308b3f6f791a131d0 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Tue, 20 Mar 2012 09:44:27 +0100
4 Subject: [PATCH 63/70] MIPS: lantiq: irqs were not cleared properly on boot
5
6 ---
7  arch/mips/lantiq/irq.c |   10 +++++-----
8  1 files changed, 5 insertions(+), 5 deletions(-)
9
10 --- a/arch/mips/lantiq/irq.c
11 +++ b/arch/mips/lantiq/irq.c
12 @@ -326,12 +326,12 @@ void __init arch_init_irq(void)
13                         panic("Failed to remap eiu memory\n");
14         }
15  
16 -       /* make sure all irqs are turned off by default */
17 -       for (i = 0; i < 5; i++)
18 +       for (i = 0; i < 5; i++) {
19 +               /* make sure all irqs are turned off by default */
20                 ltq_icu_w32(0, LTQ_ICU_IM0_IER + (i * LTQ_ICU_OFFSET));
21 -
22 -       /* clear all possibly pending interrupts */
23 -       ltq_icu_w32(~0, LTQ_ICU_IM0_ISR + (i * LTQ_ICU_OFFSET));
24 +               /* clear all possibly pending interrupts */
25 +               ltq_icu_w32(~0, LTQ_ICU_IM0_ISR + (i * LTQ_ICU_OFFSET));
26 +       }
27  
28         mips_cpu_irq_init();
29