mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
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>
This commit is contained in:
parent
69b4269eff
commit
dd80b54b18
1 changed files with 1 additions and 1 deletions
|
@ -720,7 +720,7 @@ extern void usb_enable_ltm(struct usb_device *udev);
|
||||||
|
|
||||||
static inline bool usb_device_supports_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 false;
|
||||||
return udev->bos->ss_cap->bmAttributes & USB_LTM_SUPPORT;
|
return udev->bos->ss_cap->bmAttributes & USB_LTM_SUPPORT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue