From: Bjorn Helgaas <helgaas@kernel.org>
To: Ruud <netwerkforens@gmail.com>
Cc: linux-pci@vger.kernel.org, Martin Mares <mj@ucw.cz>
Subject: Re: [PATCH] Enumerate all undiscovered PCIe busses
Date: Sat, 3 Oct 2015 09:30:56 -0500 [thread overview]
Message-ID: <20151003143056.GA17684@localhost> (raw)
In-Reply-To: <1443810216-3215-1-git-send-email-netwerkforens@gmail.com>
This appears to be a patch for pciutils, so I cc'd Martin, who
maintains that.
On Fri, Oct 02, 2015 at 06:23:36PM +0000, Ruud wrote:
> 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
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-10-03 14:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 18:23 [PATCH] Enumerate all undiscovered PCIe busses Ruud
2015-10-03 14:30 ` Bjorn Helgaas [this message]
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=20151003143056.GA17684@localhost \
--to=helgaas@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mj@ucw.cz \
--cc=netwerkforens@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.