]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: Enable LPM for USB 2.01+ full-speed devices
authorRupesh Tatiya <rtatiya@codeaurora.org>
Tue, 14 Apr 2015 11:06:55 +0000 (16:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 May 2015 23:43:44 +0000 (01:43 +0200)
USB 2.01+ full-speed devices can have extended descriptor as well
and can support LPM.

Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c

index 95041b66b912dd3430a65f9aa84e29934cb71f3c..52178bc69297ddd585460ade0a14c3ca20c96cb8 100644 (file)
@@ -127,7 +127,7 @@ static int usb_device_supports_lpm(struct usb_device *udev)
        /* USB 2.1 (and greater) devices indicate LPM support through
         * their USB 2.0 Extended Capabilities BOS descriptor.
         */
-       if (udev->speed == USB_SPEED_HIGH) {
+       if (udev->speed == USB_SPEED_HIGH || udev->speed == USB_SPEED_FULL) {
                if (udev->bos->ext_cap &&
                        (USB_LPM_SUPPORT &
                         le32_to_cpu(udev->bos->ext_cap->bmAttributes)))