mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
net: wwan: 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> Link: https://patch.msgid.link/20251027115022.390997-4-sakari.ailus@linux.intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
a5d937dd0e
commit
10c7b9be47
@@ -162,7 +162,6 @@ static void bam_dmux_tx_done(struct bam_dmux_skb_dma *skb_dma)
|
||||
struct bam_dmux *dmux = skb_dma->dmux;
|
||||
unsigned long flags;
|
||||
|
||||
pm_runtime_mark_last_busy(dmux->dev);
|
||||
pm_runtime_put_autosuspend(dmux->dev);
|
||||
|
||||
if (skb_dma->addr)
|
||||
@@ -397,7 +396,6 @@ static void bam_dmux_tx_wakeup_work(struct work_struct *work)
|
||||
dma_async_issue_pending(dmux->tx);
|
||||
|
||||
out:
|
||||
pm_runtime_mark_last_busy(dmux->dev);
|
||||
pm_runtime_put_autosuspend(dmux->dev);
|
||||
}
|
||||
|
||||
|
||||
@@ -250,7 +250,6 @@ static void t7xx_cldma_rx_done(struct work_struct *work)
|
||||
t7xx_cldma_clear_ip_busy(&md_ctrl->hw_info);
|
||||
t7xx_cldma_hw_irq_en_txrx(&md_ctrl->hw_info, queue->index, MTK_RX);
|
||||
t7xx_cldma_hw_irq_en_eq(&md_ctrl->hw_info, queue->index, MTK_RX);
|
||||
pm_runtime_mark_last_busy(md_ctrl->dev);
|
||||
pm_runtime_put_autosuspend(md_ctrl->dev);
|
||||
}
|
||||
|
||||
@@ -362,7 +361,6 @@ static void t7xx_cldma_tx_done(struct work_struct *work)
|
||||
}
|
||||
spin_unlock_irqrestore(&md_ctrl->cldma_lock, flags);
|
||||
|
||||
pm_runtime_mark_last_busy(md_ctrl->dev);
|
||||
pm_runtime_put_autosuspend(md_ctrl->dev);
|
||||
}
|
||||
|
||||
@@ -987,7 +985,6 @@ int t7xx_cldma_send_skb(struct cldma_ctrl *md_ctrl, int qno, struct sk_buff *skb
|
||||
|
||||
allow_sleep:
|
||||
t7xx_pci_enable_sleep(md_ctrl->t7xx_dev);
|
||||
pm_runtime_mark_last_busy(md_ctrl->dev);
|
||||
pm_runtime_put_autosuspend(md_ctrl->dev);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -877,7 +877,6 @@ int t7xx_dpmaif_napi_rx_poll(struct napi_struct *napi, const int budget)
|
||||
t7xx_dpmaif_clr_ip_busy_sts(&rxq->dpmaif_ctrl->hw_info);
|
||||
t7xx_dpmaif_dlq_unmask_rx_done(&rxq->dpmaif_ctrl->hw_info, rxq->index);
|
||||
t7xx_pci_enable_sleep(rxq->dpmaif_ctrl->t7xx_dev);
|
||||
pm_runtime_mark_last_busy(rxq->dpmaif_ctrl->dev);
|
||||
pm_runtime_put_autosuspend(rxq->dpmaif_ctrl->dev);
|
||||
atomic_set(&rxq->rx_processing, 0);
|
||||
} else {
|
||||
@@ -1078,7 +1077,6 @@ static void t7xx_dpmaif_bat_release_work(struct work_struct *work)
|
||||
}
|
||||
|
||||
t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev);
|
||||
pm_runtime_mark_last_busy(dpmaif_ctrl->dev);
|
||||
pm_runtime_put_autosuspend(dpmaif_ctrl->dev);
|
||||
}
|
||||
|
||||
|
||||
@@ -185,7 +185,6 @@ static void t7xx_dpmaif_tx_done(struct work_struct *work)
|
||||
}
|
||||
|
||||
t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev);
|
||||
pm_runtime_mark_last_busy(dpmaif_ctrl->dev);
|
||||
pm_runtime_put_autosuspend(dpmaif_ctrl->dev);
|
||||
}
|
||||
|
||||
@@ -468,7 +467,6 @@ static int t7xx_dpmaif_tx_hw_push_thread(void *arg)
|
||||
t7xx_pci_disable_sleep(dpmaif_ctrl->t7xx_dev);
|
||||
t7xx_do_tx_hw_push(dpmaif_ctrl);
|
||||
t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev);
|
||||
pm_runtime_mark_last_busy(dpmaif_ctrl->dev);
|
||||
pm_runtime_put_autosuspend(dpmaif_ctrl->dev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user