commit | 04ee6ee2ca5ad419ebcbc64dae6e7128f32156fd | [log] [tgz] |
---|---|---|
author | Paul Kocialkowski <contact@paulk.fr> | Sat Apr 04 15:12:29 2015 +0200 |
committer | Marek Vasut <marex@denx.de> | Tue Apr 14 05:47:48 2015 +0200 |
tree | 8abb7ed6f2cdbd5e7543a3ab4e1788710d90faa1 | |
parent | 8879be88576024a48ae135ea0b3835727d8c9a3a [diff] |
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>