Changeset 35876


Ignore:
Timestamp:
2013-03-04T12:48:06+01:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: use backported MISC IRQ patch

Signed-off-by: Gabor Juhos <juhosg@…>

Location:
trunk/target/linux/ar71xx/patches-3.8
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/patches-3.8/009-MIPS-ath79-simplify-MISC-IRQ-handling.patch

    r35875 r35876  
     1From 1690e8f8efdeedbd23bb34a3bc5803c34f2d3f66 Mon Sep 17 00:00:00 2001 
     2From: Gabor Juhos <juhosg@openwrt.org> 
     3Date: Tue, 29 Jan 2013 16:13:17 +0000 
     4Subject: [PATCH] MIPS: ath79: simplify MISC IRQ handling 
     5 
     6commit 9c099c4e79b67d5578ce8142e6214950be4fcf43 upstream. 
     7 
     8The current code uses multiple if statements for 
     9demultiplexing the different interrupt sources. 
     10Additionally, the MISC interrupt controller has 
     1132 interrupt sources and the current code does not 
     12handles all of them. 
     13 
     14Get rid of the if statements and process all interrupt 
     15sources in a loop to fix these issues. 
     16 
     17Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
     18Patchwork: http://patchwork.linux-mips.org/patch/4874/ 
     19Signed-off-by: John Crispin <blogic@openwrt.org> 
     20--- 
     21 arch/mips/ath79/irq.c                  |   45 +++++++------------------------- 
     22 arch/mips/include/asm/mach-ath79/irq.h |    1 + 
     23 2 files changed, 10 insertions(+), 36 deletions(-) 
     24 
    125--- a/arch/mips/ath79/irq.c 
    226+++ b/arch/mips/ath79/irq.c 
  • trunk/target/linux/ar71xx/patches-3.8/163-MIPS-ath79-add-IRQ-handling-code-for-the-QCA955X-SoC.patch

    r35728 r35876  
    1313--- a/arch/mips/ath79/irq.c 
    1414+++ b/arch/mips/ath79/irq.c 
    15 @@ -130,7 +130,10 @@ static void __init ath79_misc_irq_init(v 
     15@@ -103,7 +103,10 @@ static void __init ath79_misc_irq_init(v 
    1616  
    1717        if (soc_is_ar71xx() || soc_is_ar913x()) 
     
    2525        else 
    2626                BUG(); 
    27 @@ -177,6 +180,88 @@ static void ar934x_ip2_irq_init(void) 
     27@@ -150,6 +153,88 @@ static void ar934x_ip2_irq_init(void) 
    2828        irq_set_chained_handler(ATH79_CPU_IRQ_IP2, ar934x_ip2_irq_dispatch); 
    2929 } 
     
    114114 { 
    115115        unsigned long pending; 
    116 @@ -212,6 +297,17 @@ asmlinkage void plat_irq_dispatch(void) 
     116@@ -185,6 +270,17 @@ asmlinkage void plat_irq_dispatch(void) 
    117117  * Issue a flush in the handlers to ensure that the driver sees 
    118118  * the update. 
     
    132132 { 
    133133        ath79_ddr_wb_flush(AR71XX_DDR_REG_FLUSH_PCI); 
    134 @@ -236,11 +332,6 @@ static void ar933x_ip2_handler(void) 
     134@@ -209,11 +305,6 @@ static void ar933x_ip2_handler(void) 
    135135        do_IRQ(ATH79_CPU_IRQ_IP2); 
    136136 } 
     
    144144 { 
    145145        ath79_ddr_wb_flush(AR71XX_DDR_REG_FLUSH_USB); 
    146 @@ -286,8 +377,11 @@ void __init arch_init_irq(void) 
     146@@ -259,8 +350,11 @@ void __init arch_init_irq(void) 
    147147                ath79_ip2_handler = ar933x_ip2_handler; 
    148148                ath79_ip3_handler = ar933x_ip3_handler; 
     
    157157                BUG(); 
    158158        } 
    159 @@ -298,4 +392,6 @@ void __init arch_init_irq(void) 
     159@@ -271,4 +365,6 @@ void __init arch_init_irq(void) 
    160160  
    161161        if (soc_is_ar934x()) 
     
    223223 #define ATH79_MISC_IRQ_BASE    8 
    224224 #define ATH79_MISC_IRQ_COUNT   32 
    225 @@ -23,8 +23,13 @@ 
     225@@ -24,8 +24,13 @@ 
    226226 #define ATH79_IP2_IRQ_COUNT    2 
    227227 #define ATH79_IP2_IRQ(_x)      (ATH79_IP2_IRQ_BASE + (_x)) 
Note: See TracChangeset for help on using the changeset viewer.