]> git.sur5r.net Git - u-boot/commit
usb: properly detect empty mass storage media reader
authorVincent Palatin <vpalatin@chromium.org>
Thu, 13 Dec 2012 01:55:29 +0000 (17:55 -0800)
committerMarek Vasut <marex@denx.de>
Mon, 17 Dec 2012 14:38:15 +0000 (15:38 +0100)
commit8b57e2f0814a2fd9aed1fa09d8279eaf90764560
tree9c20381ef2e51866360af00489c968a1b3c2b026
parent359439d2888fdc3797903963607bb0bbd4582e08
usb: properly detect empty mass storage media reader

When a USB card reader is empty, it will return "Not Ready - medium not
present" as Key Code Qualifier. In that situation, it's useless waiting
for the full timeout since the result won't change until the user
inserts a card.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
common/usb_storage.c