summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2013-08-15 12:21:30 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-15 17:35:31 -0700
commit6d33f7bb8c3863e54f8bdede0a2bf97a3585ac20 (patch)
treeb183a4ab10a38356822932cffced7d96e745ebff /include/linux/usb
parent224563b6ce034b82f8511969d9496113da34fb2c (diff)
downloadop-kernel-dev-6d33f7bb8c3863e54f8bdede0a2bf97a3585ac20.zip
op-kernel-dev-6d33f7bb8c3863e54f8bdede0a2bf97a3585ac20.tar.gz
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>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/wusb-wa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/wusb-wa.h b/include/linux/usb/wusb-wa.h
index 6be985b..4ff744e 100644
--- a/include/linux/usb/wusb-wa.h
+++ b/include/linux/usb/wusb-wa.h
@@ -66,6 +66,7 @@ enum {
WA_ENABLE = 0x01,
WA_RESET = 0x02,
RPIPE_PAUSE = 0x1,
+ RPIPE_STALL = 0x2,
};
/* Responses from Get Status request ([WUSB] section 8.3.1.6) */
OpenPOWER on IntegriCloud