Message ID | 1431123367-20611-1-git-send-email-tharvey@gateworks.com |
---|---|
State | Accepted |
Delegated to: | Tom Rini |
Headers | show |
On Fri, May 8, 2015 at 3:16 PM, Tim Harvey <tharvey@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@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
On Fri, May 08, 2015 at 03:16:07PM -0700, Tim Harvey 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> Applied to u-boot/master, thanks!
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.
If we are displaying detected PCI devices (CONFIG_PCI_SCAN_SHOW) display a 'PCI:' header prior to scan. Signed-off-by: Tim Harvey <tharvey@gateworks.com> --- drivers/pci/pci.c | 4 ++++ 1 file changed, 4 insertions(+)