]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] CATS: Do not try and map bad PCI IRQ numbers
authorBen Dooks <ben-linux@fluff.org>
Fri, 8 Aug 2008 20:22:35 +0000 (21:22 +0100)
committerBen Dooks <ben-linux@fluff.org>
Sat, 9 Aug 2008 12:51:53 +0000 (13:51 +0100)
commitc99e83625ba69a6fb48b87daefea3704b34d0b22
tree1caacf42bf7cf09104f88fa95a128c2bc26764e4
parent3a81e6e231aac82755ad36282c8cc4ab866e7a59
[ARM] CATS: Do not try and map bad PCI IRQ numbers

The cats_map_irq() function in the Simtec CATS support
code is mapping IRQ 255 (invalid IRQ) into what is a
supposedly valid interrupt numner which can cause problems
with other devices then seeing an interrupt they cannot
claim.

If the IRQ number if >= 255, then return -1 as this is not
something we can map.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-footbridge/cats-pci.c