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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2013 08:25:53 +0000 (16:25 +0800)
commit9e914980a5d558f38ba9a0176a4bdea8def9b99b
tree0b9a387a42b83efd24cffa8fa12b1473e6a24afa
parent06b19056b9fe16a5b235510acd125974db9d7678
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>
drivers/usb/core/hub.c