From: Oliver Neukum Date: Wed, 20 Apr 2016 13:39:11 +0000 (+0200) Subject: USB: LTM also for USB 3.1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd80b54b18db3d76a43558daaa6ea3aa67f5aacd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: LTM also for USB 3.1 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usb.h b/include/linux/usb.h index 6a9a0c28415d..29aba76017ee 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -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; }