linux-sg2042/drivers/staging/ft1000
Kelley Nielsen b1bdd4d3ed staging: ft1000: return values corrected in scram_start_dwnld
The ft1000 usb driver ignores expected Linux error codes, and uses two
values defined in ft1000_usb.h: STATUS_SUCCESS 0, and STATUS_FAILURE
0x1001; and sometimes -1. This patch changes the return values of the
function scram_start_dwnld to match the status of the handshake returned
by its helper functions, get_handshake and get_handshake_usb. If the
handshake fails, -ENETRESET is returned instead of the inappropriate
STATUS_FAILURE. Also, a new test has been added to differentiate failure
due to timeout from failure due to net reset (the default). -ETIMEDOUT
is returned in this case. Finally, 0 is returned on success instead of
STATUS_SUCCESS.

Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-29 17:11:36 -07:00
..
ft1000-pcmcia Staging: ft1000: Fix assignment of bool to 0/1 in ft1000_dnld.c 2013-10-28 15:00:35 -07:00
ft1000-usb staging: ft1000: return values corrected in scram_start_dwnld 2013-10-29 17:11:36 -07:00
Kconfig staging: ft1000-pcmcia: Fix compilation errors. 2011-01-20 15:59:03 -08:00
Makefile
TODO
ft1000.h staging: ft1000: unify struct ft1000_info between USB and PCMCIA drivers 2013-01-07 12:33:45 -08:00