]> git.dujemihanovic.xyz Git - u-boot.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)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:47:48 +0000 (05:47 +0200)
commit04ee6ee2ca5ad419ebcbc64dae6e7128f32156fd
tree8abb7ed6f2cdbd5e7543a3ab4e1788710d90faa1
parent8879be88576024a48ae135ea0b3835727d8c9a3a
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