mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
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>
This commit is contained in:
committed by
Marek Vasut
parent
59ef20303a
commit
b984700ca4
@@ -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
|
||||
|
Reference in New Issue
Block a user