Skip to content

Commit e55caca

Browse files
Prashanth Kmehmetb0
authored andcommitted
usb: dwc3-am62: Disable autosuspend during remove
BugLink: https://bugs.launchpad.net/bugs/2106770 commit 625e70c upstream. 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 <stable@kernel.org> Signed-off-by: Prashanth K <quic_prashk@quicinc.com> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/20241209105728.3216872-1-quic_prashk@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
1 parent 93c6705 commit e55caca

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
@@ -284,6 +284,7 @@ static void dwc3_ti_remove(struct platform_device *pdev)
284284

285285
pm_runtime_put_sync(dev);
286286
pm_runtime_disable(dev);
287+
pm_runtime_dont_use_autosuspend(dev);
287288
pm_runtime_set_suspended(dev);
288289
}
289290

0 commit comments

Comments
 (0)