aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-05-02 06:27:36 -0400
committerRalf Baechle <ralf@linux-mips.org>2012-05-15 11:49:21 -0400
commit16f70b561dd897dc324b726ebc94e0c87db26f61 (patch)
treea8e73be2fafe07ec970be5b12eff4466410e67ec
parent3489d72d1592deee6628ca223e06da5363a12f4d (diff)
MIPS: lantiq: clear all irqs properly on boot
Due to missing brackets, the irq modules were not properly reset on boot. Signed-off-by: John Crispin <blogic@openwrt.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3719/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/lantiq/irq.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index d673731c538a..b6b1c7260c5c 100644
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -271,12 +271,13 @@ void __init arch_init_irq(void)
271 if (!ltq_eiu_membase) 271 if (!ltq_eiu_membase)
272 panic("Failed to remap eiu memory"); 272 panic("Failed to remap eiu memory");
273 273
274 /* make sure all irqs are turned off by default */ 274 /* turn off all irqs by default */
275 for (i = 0; i < 5; i++) 275 for (i = 0; i < 5; i++) {
276 /* make sure all irqs are turned off by default */
276 ltq_icu_w32(0, LTQ_ICU_IM0_IER + (i * LTQ_ICU_OFFSET)); 277 ltq_icu_w32(0, LTQ_ICU_IM0_IER + (i * LTQ_ICU_OFFSET));
277 278 /* clear all possibly pending interrupts */
278 /* clear all possibly pending interrupts */ 279 ltq_icu_w32(~0, LTQ_ICU_IM0_ISR + (i * LTQ_ICU_OFFSET));
279 ltq_icu_w32(~0, LTQ_ICU_IM0_ISR + (i * LTQ_ICU_OFFSET)); 280 }
280 281
281 mips_cpu_irq_init(); 282 mips_cpu_irq_init();
282 283