From: Peter Chen <peter.chen@nxp.com>
To: mathias.nyman@intel.com
Cc: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org,
linux-imx@nxp.com, Peter Chen <peter.chen@nxp.com>
Subject: [PATCH 2/2] usb: host: xhci-plat: add wakeup entry at /sys
Date: Fri, 3 Jul 2020 14:25:32 +0800 [thread overview]
Message-ID: <20200703062532.29076-2-peter.chen@nxp.com> (raw)
In-Reply-To: <20200703062532.29076-1-peter.chen@nxp.com>
After that, the user could enable controller as wakeup source
for system suspend through /sys entry.
Signed-off-by: Peter Chen <peter.chen@nxp.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 cebe24ec80a5..bb5d73f0a796 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -287,7 +287,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
*priv = *priv_match;
}
- device_wakeup_enable(hcd->self.controller);
+ device_set_wakeup_capable(hcd->self.controller, true);
xhci->main_hcd = hcd;
xhci->shared_hcd = __usb_create_hcd(driver, sysdev, &pdev->dev,
--
2.17.1
next prev parent reply other threads:[~2020-07-03 6:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-03 6:25 [PATCH 1/2] usb: host: xhci: avoid calling two contineous times for xhci_suspend Peter Chen
2020-07-03 6:25 ` Peter Chen [this message]
2020-07-03 14:19 ` [PATCH 2/2] usb: host: xhci-plat: add wakeup entry at /sys Alan Stern
2020-07-04 9:22 ` Peter Chen
2020-07-04 14:48 ` Alan Stern
2020-07-05 2:12 ` Peter Chen
2020-07-05 14:31 ` Alan Stern
2020-07-06 4:03 ` Peter Chen
2020-07-06 16:22 ` Alan Stern
2020-07-07 2:01 ` Peter Chen
2020-07-07 16:11 ` Alan Stern
2020-07-08 6:47 ` Peter Chen
2020-07-08 15:02 ` Alan Stern
2020-07-09 5:15 ` Peter Chen
2020-07-09 14:50 ` Alan Stern
2020-07-21 11:03 ` Peter Chen
2020-07-21 14:10 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200703062532.29076-2-peter.chen@nxp.com \
--to=peter.chen@nxp.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-imx@nxp.com \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).