From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 3 Apr 2015 04:03:57 +0200 Subject: [U-Boot] [PATCH v2 3/3] usb: Early failure when the first descriptor read fails or is invalid In-Reply-To: <1427624899-9537-3-git-send-email-contact@paulk.fr> References: <1427624899-9537-1-git-send-email-contact@paulk.fr> <1427624899-9537-3-git-send-email-contact@paulk.fr> Message-ID: <201504030403.57949.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- 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