mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 05:31:53 +02:00
30 lines
949 B
Diff
30 lines
949 B
Diff
|
From 845d2430d74cf6e2326da95b9205258170b30c86 Mon Sep 17 00:00:00 2001
|
||
|
From: John Crispin <blogic@openwrt.org>
|
||
|
Date: Tue, 20 Mar 2012 09:44:27 +0100
|
||
|
Subject: [PATCH 67/70] MIPS: lantiq: irqs were not cleared properly on boot
|
||
|
|
||
|
---
|
||
|
arch/mips/lantiq/irq.c | 10 +++++-----
|
||
|
1 files changed, 5 insertions(+), 5 deletions(-)
|
||
|
|
||
|
--- a/arch/mips/lantiq/irq.c
|
||
|
+++ b/arch/mips/lantiq/irq.c
|
||
|
@@ -327,12 +327,12 @@ void __init arch_init_irq(void)
|
||
|
panic("Failed to remap eiu memory\n");
|
||
|
}
|
||
|
|
||
|
- /* make sure all irqs are turned off by default */
|
||
|
- for (i = 0; i < 5; i++)
|
||
|
+ 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();
|
||
|
|