linux-stable-rt/arch/powerpc/platforms/52xx
Milton Miller 67347eba15 powerpc/mpc62xx_pic: Fix get_irq handling of NO_IRQ
If none of irq category bits were set mpc52xx_get_irq() would pass
NO_IRQ_IGNORE (-1) to irq_linear_revmap, which does an unsigned compare
and declares the interrupt above the linear map range.  It then punts
to irq_find_mapping, which performs a linear search of all irqs,
which will likely miss and only then return NO_IRQ.

If no status bit is set, then we should return NO_IRQ directly.
The interrupt should not be suppressed from spurious counting, in fact
that is the definition of supurious.

Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-05-19 15:31:49 +10:00
..
Kconfig
Makefile
efika.c
lite5200.c
lite5200_pm.c
lite5200_sleep.S
media5200.c powerpc/irq: Stop exporting irq_map 2011-05-04 15:02:15 +10:00
mpc52xx_common.c
mpc52xx_gpio.c
mpc52xx_gpt.c powerpc: Convert to new irq_* function names 2011-03-29 14:48:12 +02:00
mpc52xx_lpbfifo.c Fix common misspellings 2011-03-31 11:26:23 -03:00
mpc52xx_pci.c
mpc52xx_pic.c powerpc/mpc62xx_pic: Fix get_irq handling of NO_IRQ 2011-05-19 15:31:49 +10:00
mpc52xx_pm.c
mpc52xx_sleep.S
mpc5200_simple.c