]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: Early failure when the first descriptor read fails or is invalid
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 4 Apr 2015 13:12:29 +0000 (15:12 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:07 +0000 (21:47 +0200)
commite55b123d63a19910b65ff10a4e3535d79d813413
tree4cf409c4451c98e756948930e36e2eca41a4f01d
parent22ed558cc4fb765b7582fdbf914dadea95260c2f
usb: Early failure when the first descriptor read fails or is invalid

This may happen when using an USB1 device on a controller that only supports
USB2 (e.g. EHCI). Reading the first descriptor will fail (read 0 byte), so we
can abort the process at this point instead of failing later and wasting time.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
common/usb.c