Skip to content

Commit

Permalink
usb: dwc3-am62: Disable wakeup at remove
Browse files Browse the repository at this point in the history
[ Upstream commit 4ead695 ]

Disable wakeup at remove.
Fixes the below warnings on module unload and reload.

> dwc3-am62 f900000.dwc3-usb: couldn't enable device as a wakeup source: -17
> dwc3-am62 f910000.dwc3-usb: couldn't enable device as a wakeup source: -17

Fixes: 4e3972b ("usb: dwc3-am62: Enable as a wakeup source by default")
Cc: stable@vger.kernel.org # v6.4+
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20240227-for-v6-9-am62-usb-errata-3-0-v4-2-0ada8ddb0767@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
rogerq authored and gregkh committed Apr 3, 2024
1 parent 3895780 commit 919c580
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/dwc3/dwc3-am62.c
Expand Up @@ -274,6 +274,7 @@ static void dwc3_ti_remove(struct platform_device *pdev)
u32 reg;

pm_runtime_get_sync(dev);
device_init_wakeup(dev, false);
of_platform_depopulate(dev);

/* Clear mode valid bit */
Expand Down

0 comments on commit 919c580

Please sign in to comment.