27 lines
767 B
Diff
27 lines
767 B
Diff
From 4cbc99c208e1938349aec603aee10b202a54f54a Mon Sep 17 00:00:00 2001
|
|
From: Maximilian Luz <luzmaximilian@gmail.com>
|
|
Date: Tue, 2 Jul 2019 23:51:55 +0200
|
|
Subject: [PATCH 07/12] 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
|
|
index eb24ec0e160d..8327ac3880c8 100644
|
|
--- a/drivers/usb/core/hub.c
|
|
+++ b/drivers/usb/core/hub.c
|
|
@@ -4157,7 +4157,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--;
|
|
--
|
|
2.22.0
|
|
|