| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 08/14] MIPS: lantiq: clear all irqs properly on boot |
| From: | John Crispin <blogic@openwrt.org> |
| Date: | Mon, 30 Apr 2012 13:33:03 +0200 |
| Cc: | "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>, John Crispin <blogic@openwrt.org> |
| In-reply-to: | <1335785589-32532-1-git-send-email-blogic@openwrt.org> |
| References: | <1335785589-32532-1-git-send-email-blogic@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
Due to a wrongly placed bracket, the irq modules were not properly reset on
boot.
Signed-off-by: John Crispin <blogic@openwrt.org>
---
arch/mips/lantiq/irq.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index d673731..b6b1c72 100644
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -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();
--
1.7.9.1
|
| Previous by Date: | [PATCH 07/14] MIPS: remove unused prototype kgdb_config, John Crispin |
|---|---|
| Next by Date: | [PATCH 09/14] MIPS: lantiq: enable oprofile support on lantiq targets, John Crispin |
| Previous by Thread: | [PATCH 07/14] MIPS: remove unused prototype kgdb_config, John Crispin |
| Next by Thread: | [PATCH 09/14] MIPS: lantiq: enable oprofile support on lantiq targets, John Crispin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |