lkml.org 
[lkml]   [2005]   [Jul]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[RFC][PATCH] don't bind to PCI express links [8/9]
FromAdam Belay <>
DateThu, 14 Jul 2005 04:55:48 -0400
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@novell.com>

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

\
 
 \ /
  Last update: 2005-07-14 11:31    [from the cache]
©2003-2008