diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-07-15 08:23:41 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-28 16:36:22 (GMT) |
commit | 6fc0e8a1fa7be0babaaeb6f171154ba26a8fa644 (patch) | |
tree | b62a30a13a57f77ce5d1f68fa6984478fbc64399 /arch/x86/cpu/pci.c | |
parent | 31a2dc69553136b01b51de23dd190c0f7b36de2a (diff) | |
download | u-boot-6fc0e8a1fa7be0babaaeb6f171154ba26a8fa644.tar.xz |
x86: pci: Do not assign irq 0 to pci device
IRQ 0 is reserved and should not be assigned to pci device.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/pci.c')
-rw-r--r-- | arch/x86/cpu/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/cpu/pci.c b/arch/x86/cpu/pci.c index fdfd5f7..f8da080 100644 --- a/arch/x86/cpu/pci.c +++ b/arch/x86/cpu/pci.c @@ -172,6 +172,8 @@ void pci_assign_irqs(int bus, int device, u8 irq[4]) continue; line = irq[pin - 1]; + if (!line) + continue; debug("Assigning IRQ %d to PCI device %d.%x.%d (INT%c)\n", line, bus, device, func, 'A' + pin - 1); |