diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2016-11-17 11:14:14 +0200 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2017-01-12 20:56:53 -0500 |
commit | c2404d06b82e0ca6a9b457d3901b5aa5624a85d7 (patch) | |
tree | d9788685d64488bd6204268fbe76feef4ca8fc7c /arch/sh | |
parent | 2861b336b5943f83af9ccf2f636235340ecc5cd7 (diff) |
usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
[ Upstream commit 37be66767e3cae4fd16e064d8bb7f9f72bf5c045 ]
USB-3 does not have any link state that will avoid negotiating a connection
with a plugged-in cable but will signal the host when the cable is
unplugged.
For USB-3 we used to first set the link to Disabled, then to RxDdetect to
be able to detect cable connects or disconnects. But in RxDetect the
connected device is detected again and eventually enabled.
Instead set the link into U3 and disable remote wakeups for the device.
This is what Windows does, and what Alan Stern suggested.
Cc: stable@vger.kernel.org
Cc: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions