Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sakari Ailus and committed by
Jakub Kicinski
10c7b9be a5d937dd

-9
-2
drivers/net/wwan/qcom_bam_dmux.c
··· 162 162 struct bam_dmux *dmux = skb_dma->dmux; 163 163 unsigned long flags; 164 164 165 - pm_runtime_mark_last_busy(dmux->dev); 166 165 pm_runtime_put_autosuspend(dmux->dev); 167 166 168 167 if (skb_dma->addr) ··· 396 397 dma_async_issue_pending(dmux->tx); 397 398 398 399 out: 399 - pm_runtime_mark_last_busy(dmux->dev); 400 400 pm_runtime_put_autosuspend(dmux->dev); 401 401 } 402 402
-3
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
··· 250 250 t7xx_cldma_clear_ip_busy(&md_ctrl->hw_info); 251 251 t7xx_cldma_hw_irq_en_txrx(&md_ctrl->hw_info, queue->index, MTK_RX); 252 252 t7xx_cldma_hw_irq_en_eq(&md_ctrl->hw_info, queue->index, MTK_RX); 253 - pm_runtime_mark_last_busy(md_ctrl->dev); 254 253 pm_runtime_put_autosuspend(md_ctrl->dev); 255 254 } 256 255 ··· 361 362 } 362 363 spin_unlock_irqrestore(&md_ctrl->cldma_lock, flags); 363 364 364 - pm_runtime_mark_last_busy(md_ctrl->dev); 365 365 pm_runtime_put_autosuspend(md_ctrl->dev); 366 366 } 367 367 ··· 985 987 986 988 allow_sleep: 987 989 t7xx_pci_enable_sleep(md_ctrl->t7xx_dev); 988 - pm_runtime_mark_last_busy(md_ctrl->dev); 989 990 pm_runtime_put_autosuspend(md_ctrl->dev); 990 991 return ret; 991 992 }
-2
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
··· 877 877 t7xx_dpmaif_clr_ip_busy_sts(&rxq->dpmaif_ctrl->hw_info); 878 878 t7xx_dpmaif_dlq_unmask_rx_done(&rxq->dpmaif_ctrl->hw_info, rxq->index); 879 879 t7xx_pci_enable_sleep(rxq->dpmaif_ctrl->t7xx_dev); 880 - pm_runtime_mark_last_busy(rxq->dpmaif_ctrl->dev); 881 880 pm_runtime_put_autosuspend(rxq->dpmaif_ctrl->dev); 882 881 atomic_set(&rxq->rx_processing, 0); 883 882 } else { ··· 1077 1078 } 1078 1079 1079 1080 t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); 1080 - pm_runtime_mark_last_busy(dpmaif_ctrl->dev); 1081 1081 pm_runtime_put_autosuspend(dpmaif_ctrl->dev); 1082 1082 } 1083 1083
-2
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
··· 185 185 } 186 186 187 187 t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); 188 - pm_runtime_mark_last_busy(dpmaif_ctrl->dev); 189 188 pm_runtime_put_autosuspend(dpmaif_ctrl->dev); 190 189 } 191 190 ··· 467 468 t7xx_pci_disable_sleep(dpmaif_ctrl->t7xx_dev); 468 469 t7xx_do_tx_hw_push(dpmaif_ctrl); 469 470 t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); 470 - pm_runtime_mark_last_busy(dpmaif_ctrl->dev); 471 471 pm_runtime_put_autosuspend(dpmaif_ctrl->dev); 472 472 } 473 473