USB: LTM also for USB 3.1
authorOliver Neukum <oneukum@suse.com>
Wed, 20 Apr 2016 13:39:11 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2016 22:04:38 +0000 (15:04 -0700)
LTM is also defined for SS+. The correct test is to check for anything
slower than SS not exactly SS.

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb.h

index 6a9a0c28415da603f0d76f9d101630c77658a3ce..29aba76017eeae4b7bfd82c2352825c94c4c37a9 100644 (file)
@@ -720,7 +720,7 @@ extern void usb_enable_ltm(struct usb_device *udev);
 
 static inline bool usb_device_supports_ltm(struct usb_device *udev)
 {
-       if (udev->speed != USB_SPEED_SUPER || !udev->bos || !udev->bos->ss_cap)
+       if (udev->speed < USB_SPEED_SUPER || !udev->bos || !udev->bos->ss_cap)
                return false;
        return udev->bos->ss_cap->bmAttributes & USB_LTM_SUPPORT;
 }