summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/dwc3-am62.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@kernel.org>2023-03-16 16:12:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-23 21:18:57 +0300
commit4e3972b589da0519bf57ed386974b64b9c8572fd (patch)
tree2cc37fd2ea7ce796caef5c666924cdf2d1858f28 /drivers/usb/dwc3/dwc3-am62.c
parent84364a00b264885a97f83c328df8e63d3ec7aefa (diff)
downloadlinux-4e3972b589da0519bf57ed386974b64b9c8572fd.tar.xz
usb: dwc3-am62: Enable as a wakeup source by default
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>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-am62.c')
-rw-r--r--drivers/usb/dwc3/dwc3-am62.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c
index 867bfa1252b8..859b48279658 100644
--- a/drivers/usb/dwc3/dwc3-am62.c
+++ b/drivers/usb/dwc3/dwc3-am62.c
@@ -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);