| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 3/4] MIPS: lantiq: dont register irq_chip for the irq cascade |
| From: | John Crispin <blogic@openwrt.org> |
| Date: | Thu, 16 Aug 2012 11:09:21 +0200 |
| Cc: | linux-mips@linux-mips.org, John Crispin <blogic@openwrt.org> |
| In-reply-to: | <1345108162-1080-1-git-send-email-blogic@openwrt.org> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <1345108162-1080-1-git-send-email-blogic@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
We dont want to register the irq_chip for the MIPS IRQ cascade.
Signed-off-by: John Crispin <blogic@openwrt.org>
---
arch/mips/lantiq/irq.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index 0cec43d..87f15d6 100644
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -297,6 +297,9 @@ static int icu_map(struct irq_domain *d, unsigned int irq,
irq_hw_number_t hw)
struct irq_chip *chip = <q_irq_type;
int i;
+ if (hw < MIPS_CPU_IRQ_CASCADE)
+ return 0;
+
for (i = 0; i < exin_avail; i++)
if (hw == ltq_eiu_irq[i])
chip = <q_eiu_type;
--
1.7.9.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/4] MIPS: lantiq: timer irq can be different to 7, John Crispin |
|---|---|
| Next by Date: | [PATCH 4/4] MIPS: lantiq: external irq sources are not loaded properly, John Crispin |
| Previous by Thread: | [PATCH 2/4] MIPS: lantiq: timer irq can be different to 7, John Crispin |
| Next by Thread: | [PATCH 4/4] MIPS: lantiq: external irq sources are not loaded properly, John Crispin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |