Skip to content

Commit

Permalink
usb: dwc3-am62: Enable as a wakeup source by default
Browse files Browse the repository at this point in the history
USB module can wakeup system. Enable it as a wakeup source
by default. Finer grain wakeup enable/disable can be done
from the power/wakeup system control file of the respective
USB device.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20230316131226.89540-3-rogerq@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
rogerq authored and gregkh committed Mar 23, 2023
1 parent 84364a0 commit 4e3972b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/usb/dwc3/dwc3-am62.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ static int dwc3_ti_probe(struct platform_device *pdev)

/* Device has capability to wakeup system from sleep */
device_set_wakeup_capable(dev, true);
ret = device_wakeup_enable(dev);
if (ret)
dev_err(dev, "couldn't enable device as a wakeup source: %d\n", ret);

/* Setting up autosuspend */
pm_runtime_set_autosuspend_delay(dev, DWC3_AM62_AUTOSUSPEND_DELAY);
Expand Down

0 comments on commit 4e3972b

Please sign in to comment.