u-boot/drivers/usb
Andrew Murray ddd025bb6e usb: Fix error handling in musb_hcd.c
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 <marex@denx.de>
Cc: Tom Rini <trini@ti.com>
Signed-off-by: Andrew Murray <amurray@embedded-bits.co.uk>
Acked-by: Marek Vasut <marex@denx.de>
2013-10-07 07:43:46 -04:00
..
eth net: smsc95xx: Add support for another SMSC95xx variant 2013-08-19 12:34:18 -05:00
gadget usb:dfu:g_dnl: Refactoring the string definition code for g_dnl driver 2013-08-26 21:56:34 +02:00
host usb: ehci-mx5: Use 'bool' instead of 'unsigned char' 2013-08-26 21:56:34 +02:00
musb usb: Fix error handling in musb_hcd.c 2013-10-07 07:43:46 -04:00
musb-new linux/compat.h: move dev_err, dev_info and dev_dbg from usb driver to compat.h 2013-08-22 16:50:29 +02:00
phy Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ulpi Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00