From: Sarah Sharp Date: Mon, 20 Feb 2012 16:31:26 +0000 (-0800) Subject: USB: Refactor code to set LPM support flag. X-Git-Tag: v3.5-rc1~149^2~6^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9b2099cd66de3164f6e17a5c0e3f14cce24a9a3;p=pandora-kernel.git 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 --- Reading git-diff-tree failed