ramips: make rt3883 usb work properly
[openwrt.git] / target / linux / ramips / patches-3.9 / 0101-MIPS-ralink-add-PCI-IRQ-handling.patch
1 From ca19f83f8551e6dd19073f04ad91639e98d6e22e Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Wed, 10 Apr 2013 09:07:27 +0200
4 Subject: [PATCH 101/164] MIPS: ralink: add PCI IRQ handling
5
6 The Ralink IRQ code was not handling the PCI IRQ yet. Add this functionaility
7 to make PCI work on rt3883.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
11 Patchwork: http://patchwork.linux-mips.org/patch/5165/
12 ---
13  arch/mips/ralink/irq.c |    4 ++++
14  1 file changed, 4 insertions(+)
15
16 diff --git a/arch/mips/ralink/irq.c b/arch/mips/ralink/irq.c
17 index 6d054c5..d9807d0 100644
18 --- a/arch/mips/ralink/irq.c
19 +++ b/arch/mips/ralink/irq.c
20 @@ -31,6 +31,7 @@
21  #define INTC_INT_GLOBAL                BIT(31)
22  
23  #define RALINK_CPU_IRQ_INTC    (MIPS_CPU_IRQ_BASE + 2)
24 +#define RALINK_CPU_IRQ_PCI     (MIPS_CPU_IRQ_BASE + 4)
25  #define RALINK_CPU_IRQ_FE      (MIPS_CPU_IRQ_BASE + 5)
26  #define RALINK_CPU_IRQ_WIFI    (MIPS_CPU_IRQ_BASE + 6)
27  #define RALINK_CPU_IRQ_COUNTER (MIPS_CPU_IRQ_BASE + 7)
28 @@ -104,6 +105,9 @@ asmlinkage void plat_irq_dispatch(void)
29         else if (pending & STATUSF_IP6)
30                 do_IRQ(RALINK_CPU_IRQ_WIFI);
31  
32 +       else if (pending & STATUSF_IP4)
33 +               do_IRQ(RALINK_CPU_IRQ_PCI);
34 +
35         else if (pending & STATUSF_IP2)
36                 do_IRQ(RALINK_CPU_IRQ_INTC);
37  
38 -- 
39 1.7.10.4
40