public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adam Belay <abelay@novell.com>
To: linux-kernel@vger.kernel.org
Cc: greg@kroah.com
Subject: [RFC][PATCH] don't bind to PCI express links [8/9]
Date: Thu, 14 Jul 2005 04:55:48 -0400	[thread overview]
Message-ID: <1121331349.3398.96.camel@localhost.localdomain> (raw)

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;



                 reply	other threads:[~2005-07-14  9:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1121331349.3398.96.camel@localhost.localdomain \
    --to=abelay@novell.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox