]> git.baikalelectronics.ru Git - kernel.git/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)
commit3a0cadedae5379a335475f9afb3388910bd8345d
treec70741f603c5a65571dc70b846de1f28471eeadf
parent242853d3d5e11ae59c7a3672703ac47f31ea37c7
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