USB: cypress_m8: remove invalid Clear-Halt
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 9 Jul 2009 16:59:57 +0000 (12:59 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 12 Jul 2009 22:16:40 +0000 (15:16 -0700)
commit4d2fae8b3597bc787f1f1c06637ce5ab8187e5a7
treed93fcc7c1de209940c4223d02700fcf5f9a8aa98
parent1fe975f9302e6c5a8f66401e305685396b2e4577
USB: cypress_m8: remove invalid Clear-Halt

This patch (as1265) removes an erroneous call to usb_clear_halt from
the cypress_m8 driver.  The call isn't valid because it is made from
interrupt context whereas usb_clear_halt is a blocking routine.

Presumably the code has never been executed; if it did it would cause
an oops.  So instead treat -EPIPE like any other sort of unexplained
error.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cypress_m8.c