xhci: report U3 when link is in resume state
authorZhuang Jin Can <jin.can.zhuang@intel.com>
Tue, 21 Jul 2015 14:20:29 +0000 (17:20 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Aug 2015 14:33:23 +0000 (16:33 +0200)
commitdca8f172a6116fca13321e83aad7f90154dc538e
tree195ad5ba84bf41743fb7fe430a6fdff289716dab
parent35d4cd24c5defd0689e7b51b780ea41a9a37b8b8
xhci: report U3 when link is in resume state

commit 243292a2ad3dc365849b820a64868927168894ac upstream.

xhci_hub_report_usb3_link_state() returns pls as U0 when the link
is in resume state, and this causes usb core to think the link is in
U0 while actually it's in resume state. When usb core transfers
control request on the link, it fails with TRB error as the link
is not ready for transfer.

To fix the issue, report U3 when the link is in resume state, thus
usb core knows the link it's not ready for transfer.

Signed-off-by: Zhuang Jin Can <jin.can.zhuang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci-hub.c