Skip to contentSkip to conversation

don't bind to PCI express links [8/9]

RFC PATCH New Adam Belay 1 participant 1 message Jul 14, 2005 PCI

lore
Share & tools
lore

Adam Belay

author
#0 lore raw

RFC PATCH 1/1 don't bind to PCI express links [8/9]

This patch prevents the PCI<->PCI bridge driver from binding to PCI express devices. This is needed to coexist with the PCI express root port driver. Eventually we may want to rework and better integrate linux PCI express link support, but for now this should work.

drivers/pci/bus/pci-bridge.c +4 -0
@@ -132,6 +132,10 @@
 	if (dev->subordinate)
 		return -ENODEV;
 
+	/* don't bind to pci express links */
+	if (pci_find_capability(dev, PCI_CAP_ID_EXP))
+		return -ENODEV;
+
 	bus = ppb_detect_bus(dev);
 	if (!bus)
 		return -ENODEV;