]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Refactor code to set LPM support flag.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 20 Feb 2012 16:31:26 +0000 (08:31 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 18 May 2012 22:41:54 +0000 (15:41 -0700)
commit3f318c3a1cc408c5dfc1082b93b38c141c66c30d
tree8e83a7b715f1ddbfbf9fb9130c2df4a1d073f180
parent3e1ee15ac8f9fab048b630414439c3796694964c
USB: Refactor code to set LPM support flag.

Refactor the code that sets the usb_device flag to indicate the device
support link power management (lpm_capable).  The current code sets
lpm_capable unconditionally if the USB devices have a USB 2.0 Extended
Capabilities Descriptor.  USB 3.0 devices can also have that descriptor,
but the xHCI driver code that uses lpm_capable will not run the USB 2.0
LPM test for devices under the USB 3.0 roothub.  Therefore, it's fine
only set lpm_capable for high speed devices in this refactoring.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/core/hub.c