summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2013-09-30 17:26:29 +0300
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2013-10-16 12:24:17 -0700
commitdcc01c0864823f91c3bf3ffca6613e2351702b87 (patch)
tree10356c08e7527447a06a9409fed4a03bf5ded746 /drivers/usb/host/xhci.h
parentc00809d330cfe42469fcd1cfd63f0690b47ea9bb (diff)
downloadop-kernel-dev-dcc01c0864823f91c3bf3ffca6613e2351702b87.zip
op-kernel-dev-dcc01c0864823f91c3bf3ffca6613e2351702b87.tar.gz
usb: Disable USB 2.0 Link PM before device reset.
Before the USB core resets a device, we need to disable the L1 timeout for the roothub, if USB 2.0 Link PM is enabled. Otherwise the port may transition into L1 in between descriptor fetches, before we know if the USB device descriptors changed. LPM will be re-enabled after the full device descriptors are fetched, and we can confirm the device still supports USB 2.0 LPM after the reset. We don't need to wait for the USB device to exit L1 before resetting the device, since the xHCI roothub port diagrams show a transition to the Reset state from any of the Ux states (see Figure 34 in the 2012-08-14 xHCI specification update). This patch should be backported to kernels as old as 3.2, that contain the commit 65580b4321eb36f16ae8b5987bfa1bb948fc5112 "xHCI: set USB2 hardware LPM". That was the first commit to enable USB 2.0 hardware-driven Link Power Management. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/usb/host/xhci.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud