usb: Remove redundant pm_runtime_mark_last_busy() calls
Subsystems (15)
PATCH RESEND 1/1 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 <[email protected]>
Acked-by Thierry Reding <[email protected]>
--- drivers/usb/cdns3/cdns3-gadget.c | 1 - drivers/usb/cdns3/cdnsp-gadget.c | 1 - drivers/usb/chipidea/core.c | 1 - drivers/usb/chipidea/otg_fsm.c | 1 - drivers/usb/dwc3/core.c | 2 -- drivers/usb/dwc3/dwc3-am62.c | 1 - drivers/usb/dwc3/dwc3-imx8mp.c | 1 - drivers/usb/dwc3/dwc3-pci.c | 1 - drivers/usb/dwc3/dwc3-xilinx.c | 1 - drivers/usb/gadget/udc/cdns2/cdns2-gadget.c | 1 - drivers/usb/host/xhci-mtk.c | 1 - drivers/usb/host/xhci-tegra.c | 1 - drivers/usb/misc/apple-mfi-fastcharge.c | 1 - drivers/usb/mtu3/mtu3_plat.c | 1 - drivers/usb/musb/musb_core.c | 5 ----- drivers/usb/musb/musb_debugfs.c | 5 ----- drivers/usb/musb/musb_dsps.c | 1 - drivers/usb/musb/musb_gadget.c | 4 ---- drivers/usb/musb/omap2430.c | 1 - 19 files changed, 31 deletions(-)
drivers/usb/cdns3/cdns3-gadget.c +0 -1
@@ -3251,7 +3251,6 @@ static void cdns3_gadget_exit(struct cdns *cdns) priv_dev = cdns->gadget_dev; -pm_runtime_mark_last_busy (cdns->dev);pm_runtime_put_autosuspend (cdns->dev);usb_del_gadget (&priv_dev->gadget);
drivers/usb/cdns3/cdnsp-gadget.c +0 -1
@@ -1999,7 +1999,6 @@ static void cdnsp_gadget_exit(struct cdns *cdns)struct cdnsp_device *pdev = cdns->gadget_dev;devm_free_irq (pdev->dev, cdns->dev_irq, pdev); -pm_runtime_mark_last_busy (cdns->dev);pm_runtime_put_autosuspend (cdns->dev);usb_del_gadget (&pdev->gadget);cdnsp_gadget_free_endpoints (pdev);
drivers/usb/chipidea/core.c +0 -1
@@ -1375,7 +1375,6 @@ static int ci_controller_resume(struct device *dev) ci->in_lpm = false;if (ci->wakeup_int) { ci->wakeup_int = false; -pm_runtime_mark_last_busy (ci->dev);pm_runtime_put_autosuspend (ci->dev);enable_irq (ci->irq);if (ci_otg_is_fsm_mode (ci))
drivers/usb/chipidea/otg_fsm.c +0 -1
@@ -629,7 +629,6 @@ int ci_otg_fsm_work(struct ci_hdrc *ci)ci_otg_queue_work (ci); } }else if (ci->fsm.otg->state ==OTG_STATE_A_HOST ) { -pm_runtime_mark_last_busy (ci->dev);pm_runtime_put_autosuspend (ci->dev);return 0 ; }
drivers/usb/dwc3/core.c +0 -2
@@ -282,7 +282,6 @@ static void __dwc3_set_mode(struct work_struct *work) } out: -pm_runtime_mark_last_busy (dwc->dev);pm_runtime_put_autosuspend (dwc->dev);mutex_unlock (&dwc->mutex); }
@@ -2658,7 +2657,6 @@ int dwc3_runtime_idle(struct dwc3 *dwc)break ; } -pm_runtime_mark_last_busy (dev);pm_runtime_autosuspend (dev);return 0 ;
drivers/usb/dwc3/dwc3-am62.c +0 -1
@@ -292,7 +292,6 @@ static int dwc3_ti_probe(struct platform_device *pdev)/* Setting up autosuspend */ pm_runtime_set_autosuspend_delay (dev,DWC3_AM62_AUTOSUSPEND_DELAY );pm_runtime_use_autosuspend (dev); -pm_runtime_mark_last_busy (dev);pm_runtime_put_autosuspend (dev);return 0 ;
drivers/usb/dwc3/dwc3-imx8mp.c +0 -1
@@ -312,7 +312,6 @@ static int dwc3_imx8mp_resume(struct dwc3_imx8mp *dwc3_imx, pm_message_t msg)if (dwc3_imx->wakeup_pending) { dwc3_imx->wakeup_pending = false;if (dwc->current_dr_role ==DWC3_GCTL_PRTCAP_DEVICE ) { -pm_runtime_mark_last_busy (dwc->dev);pm_runtime_put_autosuspend (dwc->dev); }else {/*
drivers/usb/dwc3/dwc3-pci.c +0 -1
@@ -322,7 +322,6 @@ static void dwc3_pci_resume_work(struct work_struct *work) return; } -pm_runtime_mark_last_busy (&dwc3->dev);pm_runtime_put_sync_autosuspend (&dwc3->dev); }#endif
drivers/usb/dwc3/dwc3-xilinx.c +0 -1
@@ -383,7 +383,6 @@ static int __maybe_unused dwc3_xlnx_runtime_resume(struct device *dev)static int __maybe_unused dwc3_xlnx_runtime_idle (struct device *dev) { -pm_runtime_mark_last_busy (dev);pm_runtime_autosuspend (dev);return 0 ;
drivers/usb/gadget/udc/cdns2/cdns2-gadget.c +0 -1
@@ -2415,7 +2415,6 @@ int cdns2_gadget_resume(struct cdns2_device *pdev, bool hibernated)void cdns2_gadget_remove (struct cdns2_device *pdev) { -pm_runtime_mark_last_busy (pdev->dev);pm_runtime_put_autosuspend (pdev->dev);usb_del_gadget (&pdev->gadget);
drivers/usb/host/xhci-mtk.c +0 -1
@@ -670,7 +670,6 @@ static int xhci_mtk_probe(struct platform_device *pdev) }device_enable_async_suspend (dev); -pm_runtime_mark_last_busy (dev);pm_runtime_put_autosuspend (dev);pm_runtime_forbid (dev);
drivers/usb/host/xhci-tegra.c +0 -1
@@ -1399,7 +1399,6 @@ static void tegra_xhci_id_work(struct work_struct *work) }tegra_xhci_set_port_power (tegra, true, true); -pm_runtime_mark_last_busy (tegra->dev); }else {if (tegra->otg_usb3_port >=0 )
drivers/usb/misc/apple-mfi-fastcharge.c +0 -1
@@ -134,7 +134,6 @@ static int apple_mfi_fc_set_property(struct power_supply *psy, ret = -EINVAL ; } -pm_runtime_mark_last_busy (&mfi->udev->dev);pm_runtime_put_autosuspend (&mfi->udev->dev);return ret;
drivers/usb/mtu3/mtu3_plat.c +0 -1
@@ -431,7 +431,6 @@ static int mtu3_probe(struct platform_device *pdev) }device_enable_async_suspend (dev); -pm_runtime_mark_last_busy (dev);pm_runtime_put_autosuspend (dev);pm_runtime_forbid (dev);
drivers/usb/musb/musb_core.c +0 -5
@@ -2031,7 +2031,6 @@ static void musb_pm_runtime_check_session(struct musb *musb)if (!musb->session)break ;trace_musb_state (musb, devctl,"Allow PM on possible host mode disconnect" ); -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller); musb->session = false;return ;
@@ -2063,7 +2062,6 @@ static void musb_pm_runtime_check_session(struct musb *musb) msecs_to_jiffies(3000)); }else {trace_musb_state (musb, devctl,"Allow PM with no session" ); -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller); }
@@ -2090,7 +2088,6 @@ static void musb_irq_work(struct work_struct *data)sysfs_notify (&musb->controller->kobj,NULL ,"mode" ); } -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller); }
@@ -2564,7 +2561,6 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)musb_init_debugfs (musb); musb->is_initialized =1 ; -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);return 0 ;
@@ -2887,7 +2883,6 @@ static int musb_resume(struct device *dev) error);spin_unlock_irqrestore (&musb->lock, flags); -pm_runtime_mark_last_busy (dev);pm_runtime_put_autosuspend (dev);return 0 ;
drivers/usb/musb/musb_debugfs.c +0 -5
@@ -106,7 +106,6 @@ static int musb_regdump_show(struct seq_file *s, void *unused) } } -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);return 0 ; }
@@ -119,7 +118,6 @@ static int musb_test_mode_show(struct seq_file *s, void *unused)pm_runtime_get_sync (musb->controller); test =musb_readb (musb->mregs,MUSB_TESTMODE ); -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);if (test == (MUSB_TEST_FORCE_HOST |MUSB_TEST_FORCE_FS ))
@@ -216,7 +214,6 @@ static ssize_t musb_test_mode_write(struct file *file,musb_writeb (musb->mregs,MUSB_TESTMODE , test); ret: -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);return count; }
@@ -243,7 +240,6 @@ static int musb_softconnect_show(struct seq_file *s, void *unused) reg =musb_readb (musb->mregs,MUSB_DEVCTL ); connect = reg &MUSB_DEVCTL_SESSION ?1 :0 ; -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);break ;default :
@@ -304,7 +300,6 @@ static ssize_t musb_softconnect_write(struct file *file, } } -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);return count; }
drivers/usb/musb/musb_dsps.c +0 -1
@@ -296,7 +296,6 @@ static void otg_timer(struct timer_list *t)if (err <0 )dev_err (dev,"%s resume work: %i\n" , __func__, err);spin_unlock_irqrestore (&musb->lock, flags); -pm_runtime_mark_last_busy (dev);pm_runtime_put_autosuspend (dev); }
drivers/usb/musb/musb_gadget.c +0 -4
@@ -1258,7 +1258,6 @@ static int musb_gadget_queue(struct usb_ep *ep, struct usb_request *req, unlock:spin_unlock_irqrestore (&musb->lock, lockflags); -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);return status;
@@ -1642,7 +1641,6 @@ static void musb_gadget_work(struct work_struct *work)spin_lock_irqsave (&musb->lock, flags);musb_pullup (musb, musb->softconnect);spin_unlock_irqrestore (&musb->lock, flags); -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller); }
@@ -1862,7 +1860,6 @@ static int musb_gadget_start(struct usb_gadget *g,if (musb->xceiv && musb->xceiv->last_event ==USB_EVENT_ID )musb_platform_set_vbus (musb,1 ); -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);return 0 ;
@@ -1916,7 +1913,6 @@ static int musb_gadget_stop(struct usb_gadget *g)usb_gadget_set_state (g,USB_STATE_NOTATTACHED );/* Force check of devctl register for PM runtime */ -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);return 0 ;
drivers/usb/musb/omap2430.c +0 -1
@@ -151,7 +151,6 @@ static void omap_musb_set_mailbox(struct omap2430_glue *glue)default :dev_dbg (musb->controller,"ID float\n" ); } -pm_runtime_mark_last_busy (musb->controller);pm_runtime_put_autosuspend (musb->controller);atomic_notifier_call_chain (&musb->xceiv->notifier, musb->xceiv->last_event,NULL );
Signature · 1 line
2.47.3