diff options
author | Andrew Murray <amurray@embedded-bits.co.uk> | 2013-10-01 15:58:56 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-10-07 07:43:46 -0400 |
commit | ddd025bb6e283744dc93d3653a0b6fbd5c35e904 (patch) | |
tree | 6163e25243a8ff5a2a40799cceb6f7a7e516cd42 /board/ti | |
parent | 6478cde618ad3bfdb9b62f62e8c76498b0d6637f (diff) | |
download | u-boot-imx-ddd025bb6e283744dc93d3653a0b6fbd5c35e904.zip u-boot-imx-ddd025bb6e283744dc93d3653a0b6fbd5c35e904.tar.gz u-boot-imx-ddd025bb6e283744dc93d3653a0b6fbd5c35e904.tar.bz2 |
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>
Diffstat (limited to 'board/ti')
0 files changed, 0 insertions, 0 deletions