]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3-am62: Disable autosuspend during remove
authorPrashanth K <quic_prashk@quicinc.com>
Mon, 9 Dec 2024 10:57:28 +0000 (16:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2025 12:34:45 +0000 (13:34 +0100)
commit92a185bf7ebb53d752402bf684171e810327dbc8
tree652372dc219bb42b1c236ae1a9e77306c211e3d8
parent3d730e8758c75b68a0152ee1ac48a270ea6725b4
usb: dwc3-am62: Disable autosuspend during remove

commit 625e70ccb7bbbb2cc912e23c63390946170c085c 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: e8784c0aec03 ("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>
drivers/usb/dwc3/dwc3-am62.c