From: Bin Meng Date: Wed, 15 Jul 2015 08:23:41 +0000 (+0800) Subject: x86: pci: Do not assign irq 0 to pci device X-Git-Tag: KARO-TX6-2015-09-18~1049 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c8397ed819928f2b4f082019c439431688e022e9;p=karo-tx-uboot.git 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 Acked-by: Simon Glass --- diff --git a/arch/x86/cpu/pci.c b/arch/x86/cpu/pci.c index fdfd5f7b9c..f8da08035e 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);