Skip to content

Commit

Permalink
usb: host: xhci-plat: add wakeup entry at sysfs
Browse files Browse the repository at this point in the history
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@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200918131752.16488-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Peter Chen authored and Greg Kroah-Hartman committed Sep 20, 2020
1 parent f768e71 commit 4bb4fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/xhci-plat.c
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 4bb4fc0

Please sign in to comment.