Re: [PATCH] Enumerate all undiscovered PCIe busses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux