xhci: Fix command ring stop regression in 4.11
authorMathias Nyman <mathias.nyman@linux.intel.com>
Wed, 17 May 2017 15:32:05 +0000 (18:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 13:19:42 +0000 (15:19 +0200)
commit604d02a2a66ab7f93fd3b2bde3698c29ef057b65
tree1be69b4009a5da20c5959a771e661fe07b4907cb
parent5db851cf20857c5504b146046e97cb7781f2a743
xhci: Fix command ring stop regression in 4.11

In 4.11 TRB completion codes were renamed to match spec.

Completion codes for command ring stopped and endpoint stopped
were mixed, leading to failures while handling a stopped command ring.

Use the correct completion code for command ring stopped events.

Fixes: 0b7c105a04ca ("usb: host: xhci: rename completion codes to match spec")
Cc: <stable@vger.kernel.org> # 4.11
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c