From: Peter Chen <peter.chen(a)nxp.com>
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 <mka(a)chromium.org>
Reviewed-by: Matthias Kaehlcke <mka(a)chromium.org>
Signed-off-by: Peter Chen <peter.chen(a)nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman(a)linux.intel.com>
Link: https://lore.kernel.org/r/20200918131752.16488-6-mathias.nyman@linux.intel.…
Signed-off-by: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Signed-off-by: Florian Fainelli <f.fainelli(a)gmail.com>
---
drivers/usb/host/xhci-plat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 2a73592908e1..3d20fe9c415f 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -252,7 +252,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
*priv = *priv_match;
}
- device_wakeup_enable(hcd->self.controller);
+ device_set_wakeup_capable(&pdev->dev, true);
xhci->clk = clk;
xhci->main_hcd = hcd;
--
2.34.1
On 2/3/23 16:42, Vinayak Hegde wrote:
> Hi Everyone,
> I was going through A Beginner's Guide to Linux Kernel Development (LFD103) course and was trying out a few things
> mistakenly sending this mail.
>
Hi and welcome to LKML!
Some netiquette tips:
* Don't top-post when replying; reply inline with appropriate context
instead. Some people (like me) tends to cut quoted reply below
if you top-post.
* Don't send HTML emails - many kernel development lists (including
LKML) don't like them for being common spam method.
* Wait for at least a day before replying - people may respond to
your message at different pace.
* Use git-send-email(1) to submit patches (see
Documentation/process/submitting-patches.rst for how to do that).
Regarding your patch, I think Greg has already bumped SUBLEVEL
whenever new stable release is made, so no need to send separate
patch just for that.
Thanks.
--
An old man doll... just what I always wanted! - Clara