Skip to content

Commit

Permalink
MIPS: lantiq: clear all irqs properly on boot
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Crispin authored and Ralf Baechle committed May 15, 2012
1 parent 3489d72 commit 16f70b5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions arch/mips/lantiq/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,13 @@ void __init arch_init_irq(void)
if (!ltq_eiu_membase)
panic("Failed to remap eiu memory");

/* make sure all irqs are turned off by default */
for (i = 0; i < 5; i++)
/* turn off all irqs by default */
for (i = 0; i < 5; i++) {
/* make sure all irqs are turned off by default */
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));
/* clear all possibly pending interrupts */
ltq_icu_w32(~0, LTQ_ICU_IM0_ISR + (i * LTQ_ICU_OFFSET));
}

mips_cpu_irq_init();

Expand Down

0 comments on commit 16f70b5

Please sign in to comment.