Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Ruud <netwerkforens@gmail.com>
To: linux-pci@vger.kernel.org
Cc: Ruud <netwerkforens@gmail.com>
Subject: [PATCH] Enumerate all undiscovered PCIe busses
Date: Fri,  2 Oct 2015 18:23:36 +0000	[thread overview]
Message-ID: <1443810216-3215-1-git-send-email-netwerkforens@gmail.com> (raw)

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


             reply	other threads:[~2015-10-02 18:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-02 18:23 Ruud [this message]
2015-10-03 14:30 ` [PATCH] Enumerate all undiscovered PCIe busses 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

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=1443810216-3215-1-git-send-email-netwerkforens@gmail.com \
    --to=netwerkforens@gmail.com \
    --cc=linux-pci@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