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

From: Adam Belay
Date: Thu Jul 14 2005 - 04:29:32 EST


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.

Signed-off-by: Adam Belay <abelay@xxxxxxxxxx>

--- a/drivers/pci/bus/pci-bridge.c 2005-07-14 02:30:09.000000000 -0400
+++ b/drivers/pci/bus/pci-bridge.c 2005-07-14 02:46:12.000000000 -0400
@@ -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;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/