Skip to content

Commit 625e70c

Browse files
Prashanth Kgregkh
authored andcommitted
usb: dwc3-am62: Disable autosuspend during remove
Runtime PM documentation (Section 5) mentions, during remove() callbacks, drivers should undo the runtime PM changes done in probe(). Usually this means calling pm_runtime_disable(), pm_runtime_dont_use_autosuspend() etc. Hence add missing function to disable autosuspend on dwc3-am62 driver unbind. Fixes: e8784c0 ("drivers: usb: dwc3: Add AM62 USB wrapper driver") Cc: stable <[email protected]> Signed-off-by: Prashanth K <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 01ea6bf commit 625e70c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/dwc3/dwc3-am62.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ static void dwc3_ti_remove(struct platform_device *pdev)
309309

310310
pm_runtime_put_sync(dev);
311311
pm_runtime_disable(dev);
312+
pm_runtime_dont_use_autosuspend(dev);
312313
pm_runtime_set_suspended(dev);
313314
}
314315

0 commit comments

Comments
 (0)