]> git.karo-electronics.de Git - linux-beck.git/commit
usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 17 Nov 2016 09:14:14 +0000 (11:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 09:40:11 +0000 (10:40 +0100)
commit32a35351b7ec93947efb394f252d9ad714a04f18
tree9259b326d6f0f3aa4b2ea50a5b1e46f57322202f
parent3666b6280351c88592f7d767052d948fc81aeb18
usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices

commit 37be66767e3cae4fd16e064d8bb7f9f72bf5c045 upstream.

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: 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>
drivers/usb/core/hub.c