Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] Enumerate all undiscovered PCIe busses
@ 2015-10-02 18:23 Ruud
  2015-10-03 14:30 ` Bjorn Helgaas
  0 siblings, 1 reply; 6+ messages in thread
From: Ruud @ 2015-10-02 18:23 UTC (permalink / raw)
  To: linux-pci; +Cc: Ruud

Multiple root complexes have a different start busnumber.
Poll all undiscovered busses for a root complex

Signed-off-by: Ruud <netwerkforens@gmail.com>
---
 lib/generic.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/lib/generic.c b/lib/generic.c
index c219592..21b8022 100644
--- a/lib/generic.c
+++ b/lib/generic.c
@@ -69,9 +69,13 @@ void
 pci_generic_scan(struct pci_access *a)
 {
   byte busmap[256];
+  int basebus;
 
   memset(busmap, 0, sizeof(busmap));
-  pci_generic_scan_bus(a, busmap, 0);
+  for(basebus=0;basebus<256;basebus++) {
+      if (busmap[basebus]==0)
+          pci_generic_scan_bus(a, busmap, basebus);
+  }
 }
 
 int
-- 
1.7.0.4


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

end of thread, other threads:[~2015-10-07  9:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02 18:23 [PATCH] Enumerate all undiscovered PCIe busses Ruud
2015-10-03 14:30 ` Bjorn Helgaas
2015-10-05 10:21   ` Martin Mares
2015-10-05 14:23     ` Ruud
2015-10-07  7:30       ` Ruud
2015-10-07  9:16         ` Ruud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox