usbip: vhci_hcd: clear just the USB_PORT_STAT_POWER bit
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 26 Jan 2018 18:54:35 +0000 (11:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:05:43 +0000 (17:05 +0100)
commit9df847674ede722e12094def6520fd2ff98452df
tree0009e5fcb3bc34cb7934a6058c169524ce351dea
parent57d4bb1beecb1b34237ddc8a08e819a0da4243b1
usbip: vhci_hcd: clear just the USB_PORT_STAT_POWER bit

Upstream commit 1c9de5bf4286 ("usbip: vhci-hcd: Add USB3 SuperSpeed
support")

vhci_hcd clears all the bits port_status bits instead of clearing
just the USB_PORT_STAT_POWER bit when it handles ClearPortFeature:
USB_PORT_FEAT_POWER. This causes vhci_hcd attach to fail in a bad
state, leaving device unusable by the client. The device is still
attached and however client can't use it.

The problem was fixed as part of larger change to add  USB3 Super
Speed support. This patch backports just the change to clear the
USB_PORT_STAT_POWER.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vhci_hcd.c