[U-Boot] [PATCH] pci: display header for bus scan

Tim Harvey tharvey at gateworks.com
Wed May 27 15:24:13 CEST 2015


On Fri, May 8, 2015 at 3:16 PM, Tim Harvey <tharvey at gateworks.com> wrote:
> If we are displaying detected PCI devices (CONFIG_PCI_SCAN_SHOW) display
> a 'PCI:' header prior to scan.
>
> Signed-off-by: Tim Harvey <tharvey at gateworks.com>
> ---
>  drivers/pci/pci.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index e1296ca..7f53eb0 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -772,6 +772,10 @@ int pci_hose_scan(struct pci_controller *hose)
>         }
>  #endif /* CONFIG_PCI_BOOTDELAY */
>
> +#ifdef CONFIG_PCI_SCAN_SHOW
> +       puts("PCI:\n");
> +#endif
> +
>         /*
>          * Start scan at current_busno.
>          * PCIe will start scan at first_busno+1.
> --
> 1.9.1
>

Tom,

I probably should have sent this one directly to you as there doesn't
seem to be a clear PCI maintainer. If CONFIG_PCI_SCAN_SHOW is defined
then a multi-line tree-like display is printed showing the bus
enumeration - this just puts a header before it so it appears like the
rest of the subsystems.

Regards,

Tim


More information about the U-Boot mailing list