]> git.ipfire.org Git - people/ms/u-boot.git/commit
USB storage probe
authorKim B. Heino <Kim.Heino@bluegiga.com>
Fri, 12 Mar 2010 08:07:00 +0000 (10:07 +0200)
committerRemy Bohmer <linux@bohmer.net>
Thu, 8 Apr 2010 19:40:00 +0000 (21:40 +0200)
commitfac71cc49f93db7d460dbc957dfbbadefa2ca0e9
tree185f85830abc80e6d6e15fabdab23dbd60260a3e
parentaaad108b889c6980a2d05262a2f7febb14f94d68
USB storage probe

While debugging one ill behaving USB device I found two bugs in USB
storage probe.

usb_stor_get_info() returns -1 (error), 0 (skip) or 1 (ok). First part
of this patch fixes error case.

Second part fixes usb_inquiry()'s retry counter handling. Original code
had retry = -1 on error case, not retry = 0 as checked in the next line.

Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com>
common/usb_storage.c