2019-02-16 18:26:57 +00:00
|
|
|
From e8dfbab5b983d3b8dfa9cd4fa04916a5a7a94731 Mon Sep 17 00:00:00 2001
|
2019-01-27 16:01:27 +00:00
|
|
|
From: Jake Day <jake@ninebysix.com>
|
2019-02-16 18:26:57 +00:00
|
|
|
Date: Sat, 16 Feb 2019 13:24:38 -0500
|
2019-01-27 16:01:27 +00:00
|
|
|
Subject: [PATCH 07/11] sdcard-reader
|
|
|
|
|
|
|
|
---
|
|
|
|
drivers/usb/core/hub.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
|
2019-02-16 18:26:57 +00:00
|
|
|
index 3adff4da2ee1..7980accfe9df 100644
|
2019-01-27 16:01:27 +00:00
|
|
|
--- a/drivers/usb/core/hub.c
|
|
|
|
+++ b/drivers/usb/core/hub.c
|
2019-02-16 18:26:57 +00:00
|
|
|
@@ -4160,7 +4160,8 @@ void usb_enable_lpm(struct usb_device *udev)
|
2019-01-27 16:01:27 +00:00
|
|
|
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--;
|
|
|
|
--
|
2019-02-16 18:26:57 +00:00
|
|
|
2.19.1
|
2019-01-27 16:01:27 +00:00
|
|
|
|