linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: workaround hard-wired bus number
@ 2012-01-27  9:11 Thomas Renninger
  2012-01-27 16:26 ` Bjorn Helgaas
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Renninger @ 2012-01-27  9:11 UTC (permalink / raw)
  To: jbarnes; +Cc: linux-pci, Yinghai Lu, trenn, bhelgaas

From: Yinghai Lu <yinghai.lu@oracle.com>

Fixes PCI device detection on IBM xSeries IBM 3850 M2 / x3950 M2
when using ACPI resources (_CRS).
This is default, a manual workaround (without this patch)
would be pci=nocrs boot param.

Tested-by: garyhade@us.ibm.com
CC: trenn@suse.de
CC: bhelgaas@google.com
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
 drivers/pci/probe.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 7cc9e2f..1e255c8 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -651,6 +651,10 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
 	dev_dbg(&dev->dev, "scanning [bus %02x-%02x] behind bridge, pass %d\n",
 		secondary, subordinate, pass);
 
+	/* some bridge primary bus is hard wired to 0 */
+	if (!primary && (primary != bus->number) && secondary && subordinate)
+		primary = bus->number;
+
 	/* Check if setup is sensible at all */
 	if (!pass &&
 	    (primary != bus->number || secondary <= bus->number)) {
-- 
1.7.6.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-10 19:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27  9:11 [PATCH] PCI: workaround hard-wired bus number Thomas Renninger
2012-01-27 16:26 ` Bjorn Helgaas
2012-01-27 17:38   ` Jesse Barnes
2012-01-30 10:43     ` Thomas Renninger
2012-01-30 11:18     ` [PATCH] PCI: workaround hard-wired bus number V2 Thomas Renninger
2012-01-30 11:25     ` Thomas Renninger
2012-02-10 19:35       ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).