Files
u-boot-tk1-som/cmd
Peng Fan 7839f5f809 cmd: usb: check if_type before using this device
For legacy usb storage driver, USB_MAX_STOR_DEV is defined as 7.
If we only have one usb disk on board, `usb dev 0` is ok.
But if `usb dev 1`, still ok, then `usb read xxx` will trigger
system fault and reboot.

So check if_type before using this device.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stephen Warren <swarren@nvidia.com>
2016-06-18 00:48:31 +02:00
..
2016-02-06 12:00:59 +01:00
2016-03-22 12:16:08 -04:00
2016-03-14 15:34:50 -06:00
2016-05-27 10:01:06 -04:00
2016-05-02 18:37:09 -04:00
2016-01-27 15:55:54 +01:00
2016-04-18 17:11:36 -04:00
2016-02-22 16:21:12 +01:00
2016-01-25 10:39:43 -05:00
2016-05-23 15:18:00 +08:00
2016-02-06 12:00:59 +01:00
2016-03-22 12:16:13 -04:00
2016-01-25 10:39:43 -05:00
2016-04-18 12:29:14 -04:00
2016-02-06 12:00:59 +01:00
2016-01-25 10:39:43 -05:00
2016-03-27 09:12:55 -04:00
2016-02-06 12:00:59 +01:00
2016-02-26 08:53:10 -07:00
2016-06-09 13:53:11 -04:00