linux/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
..
efika.c powerpc/5200: efika.c: Add of_node_put to avoid memory leak 2010-09-08 11:45:24 -06:00
Kconfig powerpc/5200: add LocalPlus bus FIFO device driver 2009-11-04 16:42:47 -07:00
lite5200_pm.c suspend: constify platform_suspend_ops 2010-11-16 14:14:02 +01:00
lite5200_sleep.S [POWERPC] MPC5200 low power mode 2007-09-19 15:25:34 +10:00
lite5200.c of/flattree: Add of_flat_dt_match() helper function 2011-01-01 13:03:25 -07:00
Makefile powerpc/5200: add LocalPlus bus FIFO device driver 2009-11-04 16:42:47 -07:00
media5200.c powerpc/irq: Stop exporting irq_map 2011-05-04 15:02:15 +10:00
mpc52xx_common.c powerpc/5200: tighten up ac97 reset timing 2010-09-08 11:55:26 -06:00
mpc52xx_gpio.c dt/powerpc: Eliminate users of of_platform_{,un}register_driver 2011-02-28 01:36:39 -07:00
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 tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
mpc52xx_pic.c powerpc/mpc62xx_pic: Fix get_irq handling of NO_IRQ 2011-05-19 15:31:49 +10:00
mpc52xx_pm.c suspend: constify platform_suspend_ops 2010-11-16 14:14:02 +01:00
mpc52xx_sleep.S [POWERPC] mpc52xx suspend to deep-sleep 2007-05-07 20:31:15 +10:00
mpc5200_simple.c of/flattree: Add of_flat_dt_match() helper function 2011-01-01 13:03:25 -07:00