summaryrefslogtreecommitdiff
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2016-04-20 15:39:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-26 15:04:38 -0700
commitdd80b54b18db3d76a43558daaa6ea3aa67f5aacd (patch)
tree3d1cfab1e8c8bd991fc62ea871552631a79b7f97 /include/linux/usb.h
parent69b4269eff5fa75b781ca65cd9c5b699027bf766 (diff)
downloadlwn-dd80b54b18db3d76a43558daaa6ea3aa67f5aacd.tar.gz
lwn-dd80b54b18db3d76a43558daaa6ea3aa67f5aacd.zip
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>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h2
1 files changed, 1 insertions, 1 deletions
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;
}