Commit 9aaa9ef8 authored by Deepak Saxena's avatar Deepak Saxena Committed by Russell King

[ARM PATCH] 2339/1: Don't mask IRQ_STATUS with IXP2000_VALID_IRQ_MASK

Patch from Deepak Saxena

Supersedes 2226/1

According to the IXP Programmer's Reference Manual, a read from
IRQ_STATUS can only return '1' for IRQ sources that have been
explicitly enabled in IRQ_ENABLE. So if we never enable 'invalid'
IRQ sources, we don't actually have to mask off IRQ_STATUS with
IXP2000_VALID_IRQ_MASK.

Signed-off-by: Deepak Saxena
Signed-off-by: Russell King
parent b59db34f
...@@ -19,11 +19,6 @@ ...@@ -19,11 +19,6 @@
orr \base, \base, #0x0000a000 orr \base, \base, #0x0000a000
orr \base, \base, #0x08 orr \base, \base, #0x08
ldr \irqstat, [\base] @ get interrupts ldr \irqstat, [\base] @ get interrupts
mov \tmp, #IXP2000_VALID_IRQ_MASK & 0xff000000
orr \tmp, \tmp, #IXP2000_VALID_IRQ_MASK & 0x00ff0000
orr \tmp, \tmp, #IXP2000_VALID_IRQ_MASK & 0x0000ff00
orr \tmp, \tmp, #IXP2000_VALID_IRQ_MASK & 0x000000ff
and \irqstat, \irqstat, \tmp
cmp \irqstat, #0 cmp \irqstat, #0
beq 1001f beq 1001f
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment