From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 3 Oct 2013 17:56:09 +0200 Subject: [U-Boot] [PATCH] usb: Fix error handling in musb_hcd.c In-Reply-To: <1380639536-2554-1-git-send-email-amurray@embedded-bits.co.uk> References: <1380639536-2554-1-git-send-email-amurray@embedded-bits.co.uk> Message-ID: <201310031756.09324.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 Dear Andrew Murray, > The wait_until_[rx|tx]ep_ready functions return a u8 to indicate success > containing the value 0, 1 or -1. This patch changes the return type to an > int to accommodate the negative return values. > > These functions are used in the file using calls such as if (!wait_until... > Where a -1 is returned it is mishandled and treated as success instead of > a CRC error. This patch addresses this. > > Cc: Marek Vasut > Cc: Tom Rini > Signed-off-by: Andrew Murray Acked-by: Marek Vasut Tom, feel free to pick this up if it's ok on this omap hardware. Best regards, Marek Vasut