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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

--- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux