xhci: Return correct number of tranferred bytes for stalled control endpoints
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 29 May 2015 14:01:53 +0000 (17:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 06:45:31 +0000 (15:45 +0900)
commit22ae47e65e7c1819e3598b16fcedc469ff97ec58
tree5d56c7841843fa7e9aaf1e4e8caa333ecdff097c
parent41485a90d573764738a2d096c01133fe30c2ebca
xhci: Return correct number of tranferred bytes for stalled control endpoints

Fix the xhci driver from bluntly setting the transferred length to 0 if
we get a STALL on anything else than the data stage of a control transfer.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c