Skip to content

Commit 8d3c283

Browse files
Sakari Ailusgregkh
authored andcommitted
usb: Remove redundant pm_runtime_mark_last_busy() calls
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Thierry Reding <treding@nvidia.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Acked-by: Peter Chen <peter.chen@kernel.org> Link: https://patch.msgid.link/20251111095117.95023-1-sakari.ailus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3578b1c commit 8d3c283

19 files changed

Lines changed: 0 additions & 31 deletions

drivers/usb/cdns3/cdns3-gadget.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3251,7 +3251,6 @@ static void cdns3_gadget_exit(struct cdns *cdns)
32513251
priv_dev = cdns->gadget_dev;
32523252

32533253

3254-
pm_runtime_mark_last_busy(cdns->dev);
32553254
pm_runtime_put_autosuspend(cdns->dev);
32563255

32573256
usb_del_gadget(&priv_dev->gadget);

drivers/usb/cdns3/cdnsp-gadget.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,6 @@ static void cdnsp_gadget_exit(struct cdns *cdns)
19991999
struct cdnsp_device *pdev = cdns->gadget_dev;
20002000

20012001
devm_free_irq(pdev->dev, cdns->dev_irq, pdev);
2002-
pm_runtime_mark_last_busy(cdns->dev);
20032002
pm_runtime_put_autosuspend(cdns->dev);
20042003
usb_del_gadget(&pdev->gadget);
20052004
cdnsp_gadget_free_endpoints(pdev);

drivers/usb/chipidea/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,6 @@ static int ci_controller_resume(struct device *dev)
13721372
ci->in_lpm = false;
13731373
if (ci->wakeup_int) {
13741374
ci->wakeup_int = false;
1375-
pm_runtime_mark_last_busy(ci->dev);
13761375
pm_runtime_put_autosuspend(ci->dev);
13771376
enable_irq(ci->irq);
13781377
if (ci_otg_is_fsm_mode(ci))

drivers/usb/chipidea/otg_fsm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ int ci_otg_fsm_work(struct ci_hdrc *ci)
629629
ci_otg_queue_work(ci);
630630
}
631631
} else if (ci->fsm.otg->state == OTG_STATE_A_HOST) {
632-
pm_runtime_mark_last_busy(ci->dev);
633632
pm_runtime_put_autosuspend(ci->dev);
634633
return 0;
635634
}

drivers/usb/dwc3/core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ static void __dwc3_set_mode(struct work_struct *work)
282282
}
283283

284284
out:
285-
pm_runtime_mark_last_busy(dwc->dev);
286285
pm_runtime_put_autosuspend(dwc->dev);
287286
mutex_unlock(&dwc->mutex);
288287
}
@@ -2658,7 +2657,6 @@ int dwc3_runtime_idle(struct dwc3 *dwc)
26582657
break;
26592658
}
26602659

2661-
pm_runtime_mark_last_busy(dev);
26622660
pm_runtime_autosuspend(dev);
26632661

26642662
return 0;

drivers/usb/dwc3/dwc3-am62.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ static int dwc3_ti_probe(struct platform_device *pdev)
292292
/* Setting up autosuspend */
293293
pm_runtime_set_autosuspend_delay(dev, DWC3_AM62_AUTOSUSPEND_DELAY);
294294
pm_runtime_use_autosuspend(dev);
295-
pm_runtime_mark_last_busy(dev);
296295
pm_runtime_put_autosuspend(dev);
297296
return 0;
298297

drivers/usb/dwc3/dwc3-imx8mp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ static int dwc3_imx8mp_resume(struct dwc3_imx8mp *dwc3_imx, pm_message_t msg)
312312
if (dwc3_imx->wakeup_pending) {
313313
dwc3_imx->wakeup_pending = false;
314314
if (dwc->current_dr_role == DWC3_GCTL_PRTCAP_DEVICE) {
315-
pm_runtime_mark_last_busy(dwc->dev);
316315
pm_runtime_put_autosuspend(dwc->dev);
317316
} else {
318317
/*

drivers/usb/dwc3/dwc3-pci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ static void dwc3_pci_resume_work(struct work_struct *work)
322322
return;
323323
}
324324

325-
pm_runtime_mark_last_busy(&dwc3->dev);
326325
pm_runtime_put_sync_autosuspend(&dwc3->dev);
327326
}
328327
#endif

drivers/usb/dwc3/dwc3-xilinx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ static int __maybe_unused dwc3_xlnx_runtime_resume(struct device *dev)
383383

384384
static int __maybe_unused dwc3_xlnx_runtime_idle(struct device *dev)
385385
{
386-
pm_runtime_mark_last_busy(dev);
387386
pm_runtime_autosuspend(dev);
388387

389388
return 0;

drivers/usb/gadget/udc/cdns2/cdns2-gadget.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,6 @@ int cdns2_gadget_resume(struct cdns2_device *pdev, bool hibernated)
24152415

24162416
void cdns2_gadget_remove(struct cdns2_device *pdev)
24172417
{
2418-
pm_runtime_mark_last_busy(pdev->dev);
24192418
pm_runtime_put_autosuspend(pdev->dev);
24202419

24212420
usb_del_gadget(&pdev->gadget);

0 commit comments

Comments
 (0)