Commit 970adfa7efd0cb78576468cab7501b9ced8a7984

Authored by Dan Nica
Committed by Larisa Grigore
1 parent 373d846353

pci: Fix ambiguous behaviour of the "pci" command

The "pci" command may or may not re-enumerate the bus depending
on a build time option. Add printf() calls to inform the user
about whether or not the bus is being re-enumerated.

Issue: ALB-1121
Signed-off-by: Dan Nica <dan.nica@nxp.com>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -333,6 +333,8 @@
333 333 {
334 334 struct udevice *dev;
335 335  
  336 + printf("Showing already found devices. Not re-enumerating the bus.\n");
  337 +
336 338 pciinfo_header(bus->seq, short_listing);
337 339  
338 340 for (device_find_first_child(bus, &dev);
... ... @@ -396,6 +398,8 @@
396 398 unsigned short vendor_id;
397 399 pci_dev_t dev;
398 400 int ret;
  401 +
  402 + printf("Re-enumerating the bus.\n");
399 403  
400 404 if (!hose)
401 405 return;