Searched hist:ddd025bb6e283744dc93d3653a0b6fbd5c35e904 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/musb/ |
| H A D | musb_hcd.c | ddd025bb6e283744dc93d3653a0b6fbd5c35e904 Tue Oct 01 14:58:56 UTC 2013 Andrew Murray <amurray@embedded-bits.co.uk> 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>
|