net: ipa: 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> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://patch.msgid.link/20251027115022.390997-2-sakari.ailus@linux.intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
9f2674e1c3
commit
a5d937dd0e
|
|
@ -149,7 +149,6 @@ static irqreturn_t ipa_isr_thread(int irq, void *dev_id)
|
|||
iowrite32(pending, ipa->reg_virt + reg_offset(reg));
|
||||
}
|
||||
out_power_put:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return IRQ_HANDLED;
|
||||
|
|
|
|||
|
|
@ -903,7 +903,6 @@ static int ipa_probe(struct platform_device *pdev)
|
|||
if (ret)
|
||||
goto err_deconfig;
|
||||
done:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@ static int ipa_open(struct net_device *netdev)
|
|||
|
||||
netif_start_queue(netdev);
|
||||
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return 0;
|
||||
|
|
@ -102,7 +101,6 @@ static int ipa_stop(struct net_device *netdev)
|
|||
ipa_endpoint_disable_one(priv->rx);
|
||||
ipa_endpoint_disable_one(priv->tx);
|
||||
out_power_put:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return 0;
|
||||
|
|
@ -175,7 +173,6 @@ ipa_start_xmit(struct sk_buff *skb, struct net_device *netdev)
|
|||
|
||||
ret = ipa_endpoint_skb_tx(endpoint, skb);
|
||||
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
|
||||
if (ret) {
|
||||
|
|
@ -432,7 +429,6 @@ static void ipa_modem_crashed(struct ipa *ipa)
|
|||
dev_err(dev, "error %d zeroing modem memory regions\n", ret);
|
||||
|
||||
out_power_put:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,6 @@ static irqreturn_t ipa_smp2p_modem_setup_ready_isr(int irq, void *dev_id)
|
|||
WARN(ret != 0, "error %d from ipa_setup()\n", ret);
|
||||
|
||||
out_power_put:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return IRQ_HANDLED;
|
||||
|
|
@ -213,7 +212,6 @@ static void ipa_smp2p_power_release(struct ipa *ipa)
|
|||
if (!ipa->smp2p->power_on)
|
||||
return;
|
||||
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
ipa->smp2p->power_on = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ static void ipa_uc_response_hdlr(struct ipa *ipa)
|
|||
if (ipa->uc_powered) {
|
||||
ipa->uc_loaded = true;
|
||||
ipa_power_retention(ipa, true);
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
ipa->uc_powered = false;
|
||||
} else {
|
||||
|
|
@ -203,7 +202,6 @@ void ipa_uc_deconfig(struct ipa *ipa)
|
|||
if (!ipa->uc_powered)
|
||||
return;
|
||||
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
(void)pm_runtime_put_autosuspend(dev);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue