summaryrefslogtreecommitdiff
path: root/cmd/usb.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2016-12-21 09:35:08 +0100
committerMarek Vasut <marek.vasut@gmail.com>2017-01-17 10:26:21 +0100
commitb984700ca4b98597825fbc79c47e7a621889adaf (patch)
tree870a2ad03a0680e4dc9444c5fa873a5f296a7775 /cmd/usb.c
parent59ef20303a54305b978453d5cc88f9aea2486021 (diff)
usb: storage: Show number of storage devices detected for DM_USB
By enabling DM_USB information about number of storage devices was lost. Get this information back simply by printing number of devices detected via BLK uclass. For example: scanning bus 0 for devices... 7 USB Device(s) found scanning usb for storage devices... 3 Storage Device(s) found scanning usb for ethernet devices... 0 Ethernet Device(s) found Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'cmd/usb.c')
-rw-r--r--cmd/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/usb.c b/cmd/usb.c
index 455127c844..4fa456e318 100644
--- a/cmd/usb.c
+++ b/cmd/usb.c
@@ -571,11 +571,11 @@ static void do_usb_start(void)
return;
/* Driver model will probe the devices as they are found */
-#ifndef CONFIG_DM_USB
# ifdef CONFIG_USB_STORAGE
/* try to recognize storage devices immediately */
usb_stor_curr_dev = usb_stor_scan(1);
# endif
+#ifndef CONFIG_DM_USB
# ifdef CONFIG_USB_KEYBOARD
drv_usb_kbd_init();
# endif