]> err.no Git - linux-2.6/commit
cypress_m8: improve control endpoint error handling
authorMike Isely <isely@pobox.com>
Wed, 30 Aug 2006 03:07:07 +0000 (22:07 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:58 +0000 (11:58 -0700)
commit48298e50e0f7dfc7273ebfaa37ffd225428e83ed
treec70741f603c5a65571dc70b846de1f28471eeadf
parent9aa8dae7b1fa7af099a403fc3766e068a0ea6d68
cypress_m8: improve control endpoint error handling

Fix usb core function error return checks to look for negative errno
values, not positive errno values.  This bug had rendered those checks
useless.  Also remove attempted error recovery on control endpoints
for EPIPE - with control endpoints EPIPE does not indicate a halted
endpoint so trying to recover with usb_clear_halt() is not the correct
action.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cypress_m8.c