[U-Boot] [PATCH 04/10] x86: pci: Do not assign irq 0 to pci device

Bin Meng bmeng.cn at gmail.com
Wed Jul 15 10:23:41 CEST 2015


IRQ 0 is reserved and should not be assigned to pci device.

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 arch/x86/cpu/pci.c | 2 ++
 1 file changed, 2 insertions(+)

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);
-- 
1.8.2.1



More information about the U-Boot mailing list