]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix PCI IRQ fallback code to not map IRQ 0
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Dec 2007 04:10:02 +0000 (15:10 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Dec 2007 05:18:17 +0000 (16:18 +1100)
commite7634f5f8a2d733df4f8ad510e58216f68f3455d
tree4ff7a745643406883ba87ee4aa4f527040c6bf71
parent6b6236e0697ae796cb0ed685d85bc58b31918214
[POWERPC] Fix PCI IRQ fallback code to not map IRQ 0

The PCI IRQ code has a fallback when the device-tree parsing fails, that
tries to map the interrupt indicated by PCI_INTERRUPT_LINE if the firmware
set something in there. This is a bit fragile but has proven useful in some
cases so far. However, it's causing us to incorrectly try to map interrupt 0
on various setups, so let's prevent that case, as none of the cases where
the fallback is legit should have an IRQ 0.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci-common.c