* [PATCH 0/3] usb: remove redundant pm_runtime_dont_use_autosuspend calls()
@ 2026-11-06 13:39 Joshua Crofts
2026-11-06 13:39 ` [PATCH 1/3] usb: chipidea: remove redundant pm_runtime_dont_use_autosuspend() call Joshua Crofts
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Joshua Crofts @ 2026-11-06 13:39 UTC (permalink / raw)
To: Peter Chen, Greg Kroah-Hartman, Thinh Nguyen, Bin Liu
Cc: linux-usb, linux-kernel
Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"),
driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.
Remove the redundant function calls.
Joshua Crofts (3):
usb: chipidea: remove redundant pm_runtime_dont_use_autosuspend() call
usb: musb: remove redundant pm_runtime_dont_use_autosuspend() calls
usb: dwc3: remove redundant pm_runtime_dont_use_autosuspend() calls
drivers/usb/chipidea/core.c | 1 -
drivers/usb/dwc3/core.c | 2 --
drivers/usb/dwc3/dwc3-am62.c | 1 -
drivers/usb/musb/musb_core.c | 2 --
4 files changed, 6 deletions(-)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.47.3
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/3] usb: chipidea: remove redundant pm_runtime_dont_use_autosuspend() call 2026-11-06 13:39 [PATCH 0/3] usb: remove redundant pm_runtime_dont_use_autosuspend calls() Joshua Crofts @ 2026-11-06 13:39 ` Joshua Crofts 2026-11-06 13:39 ` [PATCH 2/3] usb: musb: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts 2026-11-06 13:39 ` [PATCH 3/3] usb: dwc3: " Joshua Crofts 2 siblings, 0 replies; 5+ messages in thread From: Joshua Crofts @ 2026-11-06 13:39 UTC (permalink / raw) To: Peter Chen, Greg Kroah-Hartman, Thinh Nguyen, Bin Liu Cc: linux-usb, linux-kernel Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any pm_runtime_use_autosuspend() calls on driver exit. Remove the redundant function call. Signed-off-by: Joshua Crofts <crofts@kernel.org> --- drivers/usb/chipidea/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 3461dd763a6e..7edc512cc37d 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -1250,7 +1250,6 @@ static void ci_hdrc_remove(struct platform_device *pdev) usb_role_switch_unregister(ci->role_switch); if (ci->supports_runtime_pm) { - pm_runtime_dont_use_autosuspend(&pdev->dev); pm_runtime_get_sync(&pdev->dev); pm_runtime_disable(&pdev->dev); pm_runtime_put_noidle(&pdev->dev); -- 2.47.3 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] usb: musb: remove redundant pm_runtime_dont_use_autosuspend() calls 2026-11-06 13:39 [PATCH 0/3] usb: remove redundant pm_runtime_dont_use_autosuspend calls() Joshua Crofts 2026-11-06 13:39 ` [PATCH 1/3] usb: chipidea: remove redundant pm_runtime_dont_use_autosuspend() call Joshua Crofts @ 2026-11-06 13:39 ` Joshua Crofts 2026-11-06 13:39 ` [PATCH 3/3] usb: dwc3: " Joshua Crofts 2 siblings, 0 replies; 5+ messages in thread From: Joshua Crofts @ 2026-11-06 13:39 UTC (permalink / raw) To: Peter Chen, Greg Kroah-Hartman, Thinh Nguyen, Bin Liu Cc: linux-usb, linux-kernel Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any pm_runtime_use_autosuspend() calls on driver exit. Remove the redundant function calls. Signed-off-by: Joshua Crofts <crofts@kernel.org> --- drivers/usb/musb/musb_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 73ac25f53698..28e59b53fd02 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2576,7 +2576,6 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) usb_phy_shutdown(musb->xceiv); err_usb_phy_init: - pm_runtime_dont_use_autosuspend(musb->controller); pm_runtime_put_sync(musb->controller); pm_runtime_disable(musb->controller); @@ -2644,7 +2643,6 @@ static void musb_remove(struct platform_device *pdev) spin_unlock_irqrestore(&musb->lock, flags); musb_platform_exit(musb); - pm_runtime_dont_use_autosuspend(musb->controller); pm_runtime_put_sync(musb->controller); pm_runtime_disable(musb->controller); musb_phy_callback = NULL; -- 2.47.3 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] usb: dwc3: remove redundant pm_runtime_dont_use_autosuspend() calls 2026-11-06 13:39 [PATCH 0/3] usb: remove redundant pm_runtime_dont_use_autosuspend calls() Joshua Crofts 2026-11-06 13:39 ` [PATCH 1/3] usb: chipidea: remove redundant pm_runtime_dont_use_autosuspend() call Joshua Crofts 2026-11-06 13:39 ` [PATCH 2/3] usb: musb: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts @ 2026-11-06 13:39 ` Joshua Crofts 2026-11-25 1:12 ` Thinh Nguyen 2 siblings, 1 reply; 5+ messages in thread From: Joshua Crofts @ 2026-11-06 13:39 UTC (permalink / raw) To: Peter Chen, Greg Kroah-Hartman, Thinh Nguyen, Bin Liu Cc: linux-usb, linux-kernel Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any pm_runtime_use_autosuspend() calls on driver exit. Remove the redundant function calls. Signed-off-by: Joshua Crofts <crofts@kernel.org> --- drivers/usb/dwc3/core.c | 2 -- drivers/usb/dwc3/dwc3-am62.c | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index fd5c2cd36c59..c4f0aa962747 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -2431,7 +2431,6 @@ int dwc3_core_probe(const struct dwc3_probe_data *data) err_allow_rpm: pm_runtime_allow(dev); pm_runtime_disable(dev); - pm_runtime_dont_use_autosuspend(dev); pm_runtime_set_suspended(dev); pm_runtime_put_noidle(dev); err_disable_clks: @@ -2486,7 +2485,6 @@ void dwc3_core_remove(struct dwc3 *dwc) pm_runtime_allow(dwc->dev); pm_runtime_disable(dwc->dev); - pm_runtime_dont_use_autosuspend(dwc->dev); pm_runtime_put_noidle(dwc->dev); /* * HACK: Clear the driver data, which is currently accessed by parent diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c index d03b3950ce04..0df7e436aeb0 100644 --- a/drivers/usb/dwc3/dwc3-am62.c +++ b/drivers/usb/dwc3/dwc3-am62.c @@ -322,7 +322,6 @@ static void dwc3_ti_remove(struct platform_device *pdev) pm_runtime_put_sync(dev); pm_runtime_disable(dev); - pm_runtime_dont_use_autosuspend(dev); pm_runtime_set_suspended(dev); } -- 2.47.3 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] usb: dwc3: remove redundant pm_runtime_dont_use_autosuspend() calls 2026-11-06 13:39 ` [PATCH 3/3] usb: dwc3: " Joshua Crofts @ 2026-11-25 1:12 ` Thinh Nguyen 0 siblings, 0 replies; 5+ messages in thread From: Thinh Nguyen @ 2026-11-25 1:12 UTC (permalink / raw) To: Joshua Crofts Cc: Peter Chen, Greg Kroah-Hartman, Thinh Nguyen, Bin Liu, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org On Fri, Nov 06, 2026, Joshua Crofts wrote: > Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), > driver core is now responsible for undoing any > pm_runtime_use_autosuspend() calls on driver exit. > > Remove the redundant function calls. > > Signed-off-by: Joshua Crofts <crofts@kernel.org> > --- > drivers/usb/dwc3/core.c | 2 -- > drivers/usb/dwc3/dwc3-am62.c | 1 - > 2 files changed, 3 deletions(-) > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > index fd5c2cd36c59..c4f0aa962747 100644 > --- a/drivers/usb/dwc3/core.c > +++ b/drivers/usb/dwc3/core.c > @@ -2431,7 +2431,6 @@ int dwc3_core_probe(const struct dwc3_probe_data *data) > err_allow_rpm: > pm_runtime_allow(dev); > pm_runtime_disable(dev); > - pm_runtime_dont_use_autosuspend(dev); > pm_runtime_set_suspended(dev); > pm_runtime_put_noidle(dev); > err_disable_clks: > @@ -2486,7 +2485,6 @@ void dwc3_core_remove(struct dwc3 *dwc) > > pm_runtime_allow(dwc->dev); > pm_runtime_disable(dwc->dev); > - pm_runtime_dont_use_autosuspend(dwc->dev); > pm_runtime_put_noidle(dwc->dev); > /* > * HACK: Clear the driver data, which is currently accessed by parent > diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c > index d03b3950ce04..0df7e436aeb0 100644 > --- a/drivers/usb/dwc3/dwc3-am62.c > +++ b/drivers/usb/dwc3/dwc3-am62.c > @@ -322,7 +322,6 @@ static void dwc3_ti_remove(struct platform_device *pdev) > > pm_runtime_put_sync(dev); > pm_runtime_disable(dev); > - pm_runtime_dont_use_autosuspend(dev); > pm_runtime_set_suspended(dev); > } > > -- > 2.47.3 > Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Thanks, Thinh ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-25 1:12 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-06 13:39 [PATCH 0/3] usb: remove redundant pm_runtime_dont_use_autosuspend calls() Joshua Crofts 2026-11-06 13:39 ` [PATCH 1/3] usb: chipidea: remove redundant pm_runtime_dont_use_autosuspend() call Joshua Crofts 2026-11-06 13:39 ` [PATCH 2/3] usb: musb: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts 2026-11-06 13:39 ` [PATCH 3/3] usb: dwc3: " Joshua Crofts 2026-11-25 1:12 ` Thinh Nguyen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox