Commit 16f70b56 authored by John Crispin's avatar John Crispin Committed by Ralf Baechle

MIPS: lantiq: clear all irqs properly on boot

Due to missing brackets, the irq modules were not properly reset on boot.
Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3719/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 3489d72d
......@@ -271,12 +271,13 @@ void __init arch_init_irq(void)
if (!ltq_eiu_membase)
panic("Failed to remap eiu memory");
/* turn off all irqs by default */
for (i = 0; i < 5; i++) {
/* make sure all irqs are turned off by default */
for (i = 0; i < 5; i++)
ltq_icu_w32(0, LTQ_ICU_IM0_IER + (i * LTQ_ICU_OFFSET));
/* clear all possibly pending interrupts */
ltq_icu_w32(~0, LTQ_ICU_IM0_ISR + (i * LTQ_ICU_OFFSET));
}
mips_cpu_irq_init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment