]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: WUSBCORE: clear RPIPE stall for control endpoints
authorThomas Pugliese <thomas.pugliese@gmail.com>
Thu, 15 Aug 2013 17:21:30 +0000 (12:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2013 00:35:31 +0000 (17:35 -0700)
commit6d33f7bb8c3863e54f8bdede0a2bf97a3585ac20
treeb183a4ab10a38356822932cffced7d96e745ebff
parent224563b6ce034b82f8511969d9496113da34fb2c
USB: WUSBCORE: clear RPIPE stall for control endpoints

When the HWA encounters a STALL on a control endpoint, it should clear the
RPIPE_STALL feature on the RPIPE before processing the next transfer
request.  Otherwise, all transfer requests on that endpoint after the
first STALL will fail because the RPIPE is still in the halted state.
This also removes the unneccessary call to spin_lock_irqsave for a nested
lock that was present in the first patch.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/wa-hc.h
drivers/usb/wusbcore/wa-rpipe.c
drivers/usb/wusbcore/wa-xfer.c
include/linux/usb/wusb-wa.h