x86: pci: Do not assign irq 0 to pci device
authorBin Meng <bmeng.cn@gmail.com>
Wed, 15 Jul 2015 08:23:41 +0000 (16:23 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jul 2015 16:36:22 +0000 (10:36 -0600)
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>
arch/x86/cpu/pci.c

index fdfd5f7b9cc85648227f0e1a1fdc50e3e49d1fde..f8da08035e62bbcfd5454682bfa5b03fbeca19a9 100644 (file)
@@ -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);