bump kernel to 3.2.12
[openwrt/openwrt.git] / target / linux / lantiq / patches-3.2 / 0067-MIPS-lantiq-irqs-were-not-cleared-properly-on-boot.patch
1 From 845d2430d74cf6e2326da95b9205258170b30c86 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 67/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 diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
11 index 770a10c..d4e70b4 100644
12 --- a/arch/mips/lantiq/irq.c
13 +++ b/arch/mips/lantiq/irq.c
14 @@ -327,12 +327,12 @@ void __init arch_init_irq(void)
15 panic("Failed to remap eiu memory\n");
16 }
17
18 - /* make sure all irqs are turned off by default */
19 - for (i = 0; i < 5; i++)
20 + for (i = 0; i < 5; i++) {
21 + /* make sure all irqs are turned off by default */
22 ltq_icu_w32(0, LTQ_ICU_IM0_IER + (i * LTQ_ICU_OFFSET));
23 -
24 - /* clear all possibly pending interrupts */
25 - ltq_icu_w32(~0, LTQ_ICU_IM0_ISR + (i * LTQ_ICU_OFFSET));
26 + /* clear all possibly pending interrupts */
27 + ltq_icu_w32(~0, LTQ_ICU_IM0_ISR + (i * LTQ_ICU_OFFSET));
28 + }
29
30 mips_cpu_irq_init();
31
32 --
33 1.7.7.1
34