diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-03-13 10:59:21 -0700 |
---|---|---|
committer | Luis Henriques <luis.henriques@canonical.com> | 2013-03-13 18:17:19 +0000 |
commit | 0cf6a2061de8932fe7da053ab09d87eee330fd40 (patch) | |
tree | 3e32b021e5f9fe083b65f7cd9f1733921f29ff4f /include | |
parent | e1ca75928b1e600cf02f80a7cede2b6d5e4f2fde (diff) |
USB: Fix connected device switch to Inactive state.
commit d3b9d7a9051d7024a93c76a84b2f84b3b66ad6d5 upstream.
[This is upstream commit d3b9d7a9051d7024a93c76a84b2f84b3b66ad6d5.
It needs to be backported to kernels as old as 3.2, because it fixes the
buggy commit 9dbcaec830cd97f44a0b91b315844e0d7144746b "USB: Handle warm
reset failure on empty port."]
A USB 3.0 device can transition to the Inactive state if a U1 or U2 exit
transition fails. The current code in hub_events simply issues a warm
reset, but does not call any pre-reset or post-reset driver methods (or
unbind/rebind drivers without them). Therefore the drivers won't know
their device has just been reset.
hub_events should instead call usb_reset_device. This means
hub_port_reset now needs to figure out whether it should issue a warm
reset or a hot reset.
Remove the FIXME note about needing disconnect() for a NOTATTACHED
device. This patch fixes that.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions