]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: Set hub depth after USB3 hub reset
authorElric Fu <elricfu1@gmail.com>
Sat, 18 Feb 2012 05:32:27 +0000 (13:32 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 21 Feb 2012 23:45:25 +0000 (15:45 -0800)
commita45aa3b30583e7d54e7cf4fbcd0aa699348a6e5c
tree98a28b1d77d0425000a77f55868bc5367065107c
parentcab928ee1f221c9cc48d6615070fefe2e444384a
USB: Set hub depth after USB3 hub reset

The superspeed device attached to a USB 3.0 hub(such as VIA's)
doesn't respond the address device command after resume. The
root cause is the superspeed hub will miss the Hub Depth value
that is used as an offset into the route string to locate the
bits it uses to determine the downstream port number after
reset, and all packets can't be routed to the device attached
to the superspeed hub.

Hub driver sends a Set Hub Depth request to the superspeed hub
except for USB 3.0 root hub when the hub is initialized and
doesn't send the request again after reset due to the resume
process. So moving the code that sends the Set Hub Depth request
to the superspeed hub from hub_configure() to hub_activate()
is to cover those situations include initialization and reset.

The patch should be backported to kernels as old as 2.6.39.

Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable@vger.kernel.org
drivers/usb/core/hub.c