diff mbox series

[v2,5/7] usb: host: xhci-plat: add wakeup entry at sysfs

Message ID 20200817094440.23202-6-peter.chen@nxp.com
State New
Headers show
Series [v2,1/7] usb: host: xhci-plat: add platform data support | expand

Commit Message

Peter Chen Aug. 17, 2020, 9:44 a.m. UTC
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.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
 drivers/usb/host/xhci-plat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Matthias Kaehlcke Sept. 17, 2020, 5:49 p.m. UTC | #1
On Mon, Aug 17, 2020 at 05:44:38PM +0800, Peter Chen wrote:
> 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.

> 

> Signed-off-by: Peter Chen <peter.chen@nxp.com>


Reviewed-by: Matthias Kaehlcke <mka@chromium.org>

Tested-by: Matthias Kaehlcke <mka@chromium.org>
diff mbox series

Patch

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 14ff65a387e8..cfca6fc8947c 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(&pdev->dev, true);
 
 	xhci->main_hcd = hcd;
 	xhci->shared_hcd = __usb_create_hcd(driver, sysdev, &pdev->dev,