usbcore: Refine USB3.0 device suspend and resume
authorAndiry Xu <andiry.xu@amd.com>
Wed, 27 Apr 2011 10:07:50 +0000 (18:07 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 2 May 2011 23:42:53 +0000 (16:42 -0700)
commita7114230f6bd925f1c734d8ca1c32c93bf956aed
treec7e08619e6b5815fe5634120c3954ecbdb8c50e2
parent0ed9a57e052a3d20df052a2ff12a3b42380867aa
usbcore: Refine USB3.0 device suspend and resume

In the past, we use USB2.0 request to suspend and resume a USB3.0 device.
Actually, USB3.0 hub does not support Set/Clear PORT_SUSPEND request,
instead, it uses Set PORT_LINK_STATE request. This patch makes USB3.0 device
suspend/resume comply with USB3.0 specification.

This patch fixes the issue that USB3.0 device can not be suspended when
connected to a USB3.0 external hub.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/core/hub.c
drivers/usb/host/xhci-hub.c