From 74ac7c6db81ea83fc15f8b7d8e03c7be68c09299 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 3 Feb 2023 10:25:16 +0100 Subject: [PATCH] 4.19-stable patches added patches: usb-host-xhci-plat-add-wakeup-entry-at-sysfs.patch --- ...-xhci-plat-add-wakeup-entry-at-sysfs.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 queue-4.19/usb-host-xhci-plat-add-wakeup-entry-at-sysfs.patch diff --git a/queue-4.19/usb-host-xhci-plat-add-wakeup-entry-at-sysfs.patch b/queue-4.19/usb-host-xhci-plat-add-wakeup-entry-at-sysfs.patch new file mode 100644 index 00000000000..b9b149f9ca0 --- /dev/null +++ b/queue-4.19/usb-host-xhci-plat-add-wakeup-entry-at-sysfs.patch @@ -0,0 +1,35 @@ +From 4bb4fc0dbfa23acab9b762949b91ffd52106fe4b Mon Sep 17 00:00:00 2001 +From: Peter Chen +Date: Fri, 18 Sep 2020 16:17:47 +0300 +Subject: usb: host: xhci-plat: add wakeup entry at sysfs + +From: Peter Chen + +commit 4bb4fc0dbfa23acab9b762949b91ffd52106fe4b upstream. + +With this change, there will be a wakeup entry at /sys/../power/wakeup, +and the user could use this entry to choose whether enable xhci wakeup +features (wake up system from suspend) or not. + +Tested-by: Matthias Kaehlcke +Reviewed-by: Matthias Kaehlcke +Signed-off-by: Peter Chen +Signed-off-by: Mathias Nyman +Link: https://lore.kernel.org/r/20200918131752.16488-6-mathias.nyman@linux.intel.com +Signed-off-by: Florian Fainelli +Signed-off-by: Greg Kroah-Hartman +--- + drivers/usb/host/xhci-plat.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/usb/host/xhci-plat.c ++++ b/drivers/usb/host/xhci-plat.c +@@ -261,7 +261,7 @@ static int xhci_plat_probe(struct platfo + *priv = *priv_match; + } + +- device_wakeup_enable(hcd->self.controller); ++ device_set_wakeup_capable(&pdev->dev, true); + + xhci->clk = clk; + xhci->reg_clk = reg_clk; -- 2.47.2