commit | 1b4120042f1da5397c416e853d0ed569b59ccb02 | [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 | 8f8114d695d562c65407123a803b13597432acaf [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>