usb: Clear both buffers when clearing a control transfer TT buffer.
authorWilliam Gulland <wgulland@google.com>
Thu, 27 Jun 2013 23:10:20 +0000 (16:10 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 2 Aug 2013 20:15:11 +0000 (22:15 +0200)
commit7a444fe170822a11d705a1b33beeb85a20929a24
tree18999369f6786b6aa14ee8ba42ded505383d024f
parent3c574b0665d5f20a7e67a96e3ed7cdfaa46c39b7
usb: Clear both buffers when clearing a control transfer TT buffer.

commit 2c7b871b9102c497ba8f972aa5d38532f05b654d upstream.

Control transfers have both IN and OUT (or SETUP) packets, so when
clearing TT buffers for a control transfer it's necessary to send
two HUB_CLEAR_TT_BUFFER requests to the hub.

Signed-off-by: William Gulland <wgulland@google.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/core/hub.c