diff options
author | Oliver Neukum <oneukum@suse.com> | 2016-04-20 15:39:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-26 15:04:38 -0700 |
commit | dd80b54b18db3d76a43558daaa6ea3aa67f5aacd (patch) | |
tree | 3d1cfab1e8c8bd991fc62ea871552631a79b7f97 | |
parent | 69b4269eff5fa75b781ca65cd9c5b699027bf766 (diff) | |
download | op-kernel-dev-dd80b54b18db3d76a43558daaa6ea3aa67f5aacd.zip op-kernel-dev-dd80b54b18db3d76a43558daaa6ea3aa67f5aacd.tar.gz |
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 <ONeukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/linux/usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 6a9a0c2..29aba760 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; } |