2019-01-22 13:43:10 +00:00
|
|
|
From a51d58e7f52d80a984a6942b5289234b62822178 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jake Day <jake@ninebysix.com>
|
|
|
|
Date: Tue, 22 Jan 2019 08:38:16 -0500
|
|
|
|
Subject: [PATCH 07/11] sdcard-reader
|
2018-10-28 12:52:45 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
drivers/usb/core/hub.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
2018-09-09 17:54:26 +00:00
|
|
|
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
|
|
|
|
index 1fb266809966..916a323ca79f 100644
|
|
|
|
--- a/drivers/usb/core/hub.c
|
|
|
|
+++ b/drivers/usb/core/hub.c
|
|
|
|
@@ -4098,7 +4098,8 @@ void usb_enable_lpm(struct usb_device *udev)
|
|
|
|
if (!udev || !udev->parent ||
|
|
|
|
udev->speed < USB_SPEED_SUPER ||
|
|
|
|
!udev->lpm_capable ||
|
|
|
|
- udev->state < USB_STATE_DEFAULT)
|
|
|
|
+ udev->state < USB_STATE_DEFAULT ||
|
|
|
|
+ !udev->bos || !udev->bos->ss_cap)
|
|
|
|
return;
|
|
|
|
|
|
|
|
udev->lpm_disable_count--;
|
2018-10-28 12:52:45 +00:00
|
|
|
--
|
2019-01-22 13:43:10 +00:00
|
|
|
2.17.1
|
2018-10-28 12:52:45 +00:00
|
|
|
|