]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP3: Fix get_irqnr_and_base to clear spurious interrupt bits
authorTony Lindgren <tony@atomide.com>
Tue, 21 Oct 2008 17:51:40 +0000 (10:51 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Oct 2008 22:06:40 +0000 (15:06 -0700)
commit6c1380c66fb23f26807b2810eee19028a77f2b03
treecfe00f295618fb1410b68417ef5c8cd680f7dd00
parent4b20de38df8f58a433dfad5d9589b4f799d972ad
ARM: OMAP3: Fix get_irqnr_and_base to clear spurious interrupt bits

On omap24xx, INTCPS_SIR_IRQ_OFFSET bits [6:0] contains the current
active interrupt number.

However, on 34xx INTCPS_SIR_IRQ_OFFSET bits [31:7] also contains the
SPURIOUSIRQFLAG, which gets set if the interrupt sorting information
is invalid.

If the SPURIOUSIRQFLAG bits are not ignored, the interrupt code will
occasionally produce a bunch of confusing errors:

irq -33, desc: c02ddcc8, depth: 0, count: 0, unhandled: 0
->handle_irq():  c006f23c, handle_bad_irq+0x0/0x22c
->chip(): 00000000, 0x0
->action(): 00000000

Fix this by masking out only the ACTIVEIRQ bits. Also fix a
confusing comment.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/include/mach/entry-macro.S