[U-Boot] [PATCH v2 3/3] usb: Early failure when the first descriptor read fails or is invalid

Marek Vasut marex at denx.de
Fri Apr 3 04:03:57 CEST 2015


On Sunday, March 29, 2015 at 12:28:19 PM, Paul Kocialkowski wrote:
> 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 at paulk.fr>
> ---

Please just fix the return -1 (same thing Lukasz was complaining about in 1/3),
I will pick it then.

Thanks!

Best regards,
Marek Vasut


More information about the U-Boot mailing list