8e6c7b85ca
The newer surface devices Pro 4 and up do not define _PRW to specify which GPE interrupt belongs to the lid. Thus they may not be marked as wake-up sources automatically, so we have to do this manually.
27 lines
768 B
Diff
27 lines
768 B
Diff
From f941f295c9f2ac9b1a491ae25c1423bbadfaca7b Mon Sep 17 00:00:00 2001
|
|
From: Maximilian Luz <luzmaximilian@gmail.com>
|
|
Date: Fri, 26 Jul 2019 04:11:54 +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 310eef451db8..a896e86ca0d7 100644
|
|
--- a/drivers/usb/core/hub.c
|
|
+++ b/drivers/usb/core/hub.c
|
|
@@ -4198,7 +4198,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
|
|
|