MIPS: ath79: simplify MISC IRQ handling
authorGabor Juhos <juhosg@openwrt.org>
Tue, 29 Jan 2013 16:13:17 +0000 (16:13 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sun, 17 Feb 2013 00:25:27 +0000 (01:25 +0100)
commit9c099c4e79b67d5578ce8142e6214950be4fcf43
tree9dfbc380060abeacef51074d17442f52fb037914
parentf160a289e0e8848391f5ec48ff1a014b9c04b162
MIPS: ath79: simplify MISC IRQ handling

The current code uses multiple if statements for
demultiplexing the different interrupt sources.
Additionally, the MISC interrupt controller has
32 interrupt sources and the current code does not
handles all of them.

Get rid of the if statements and process all interrupt
sources in a loop to fix these issues.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4874/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/ath79/irq.c
arch/mips/include/asm/mach-ath79/irq.h