[U-Boot] [PATCH] USB storage count

Remy Bohmer linux at bohmer.net
Wed Mar 24 20:48:10 CET 2010


Hi,

2010/3/12 Kim B. Heino <Kim.Heino at bluegiga.com>:
> Here's another USB storage patch. Currently U-Boot handles storage
> devices #0 - #4 as valid devices, even if there is none connected. This
> patch fixes usb_stor_get_dev() to check detected device count instead
> of MAX-define.
>
> This is very important for ill behaving devices. usb_dev_desc[] can be
> partially initialized if device probe fails.
>
> After fixing get_dev() it was easy to fix "usb part" etc commands.
> Previously it outputed "Unknown partition table" five times, now it's
> "no USB devices available".
>
>
> Signed-off-by: Kim B. Heino <Kim.Heino at bluegiga.com>

Applied to U-boot-usb
Thanks.

Remy


More information about the U-Boot mailing list