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

Configure Feed

Select the types of activity you want to include in your feed.

net: ethernet: 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: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://patch.msgid.link/20251027115022.390997-1-sakari.ailus@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Sakari Ailus and committed by
Jakub Kicinski
9f2674e1 b5171b89

+1 -26
-5
drivers/net/ethernet/cadence/macb_main.c
··· 327 327 status = MACB_BFEXT(DATA, macb_readl(bp, MAN)); 328 328 329 329 mdio_read_exit: 330 - pm_runtime_mark_last_busy(&bp->pdev->dev); 331 330 pm_runtime_put_autosuspend(&bp->pdev->dev); 332 331 mdio_pm_exit: 333 332 return status; ··· 372 373 status = MACB_BFEXT(DATA, macb_readl(bp, MAN)); 373 374 374 375 mdio_read_exit: 375 - pm_runtime_mark_last_busy(&bp->pdev->dev); 376 376 pm_runtime_put_autosuspend(&bp->pdev->dev); 377 377 mdio_pm_exit: 378 378 return status; ··· 403 405 goto mdio_write_exit; 404 406 405 407 mdio_write_exit: 406 - pm_runtime_mark_last_busy(&bp->pdev->dev); 407 408 pm_runtime_put_autosuspend(&bp->pdev->dev); 408 409 mdio_pm_exit: 409 410 return status; ··· 448 451 goto mdio_write_exit; 449 452 450 453 mdio_write_exit: 451 - pm_runtime_mark_last_busy(&bp->pdev->dev); 452 454 pm_runtime_put_autosuspend(&bp->pdev->dev); 453 455 mdio_pm_exit: 454 456 return status; ··· 5618 5622 macb_is_gem(bp) ? "GEM" : "MACB", macb_readl(bp, MID), 5619 5623 dev->base_addr, dev->irq, dev->dev_addr); 5620 5624 5621 - pm_runtime_mark_last_busy(&bp->pdev->dev); 5622 5625 pm_runtime_put_autosuspend(&bp->pdev->dev); 5623 5626 5624 5627 return 0;
-8
drivers/net/ethernet/freescale/fec_main.c
··· 2231 2231 ret = FEC_MMFR_DATA(readl(fep->hwp + FEC_MII_DATA)); 2232 2232 2233 2233 out: 2234 - pm_runtime_mark_last_busy(dev); 2235 2234 pm_runtime_put_autosuspend(dev); 2236 2235 2237 2236 return ret; ··· 2279 2280 ret = FEC_MMFR_DATA(readl(fep->hwp + FEC_MII_DATA)); 2280 2281 2281 2282 out: 2282 - pm_runtime_mark_last_busy(dev); 2283 2283 pm_runtime_put_autosuspend(dev); 2284 2284 2285 2285 return ret; ··· 2310 2312 if (ret) 2311 2313 netdev_err(fep->netdev, "MDIO write timeout\n"); 2312 2314 2313 - pm_runtime_mark_last_busy(dev); 2314 2315 pm_runtime_put_autosuspend(dev); 2315 2316 2316 2317 return ret; ··· 2353 2356 netdev_err(fep->netdev, "MDIO write timeout\n"); 2354 2357 2355 2358 out: 2356 - pm_runtime_mark_last_busy(dev); 2357 2359 pm_runtime_put_autosuspend(dev); 2358 2360 2359 2361 return ret; ··· 2835 2839 buf[off] = readl(&theregs[off]); 2836 2840 } 2837 2841 2838 - pm_runtime_mark_last_busy(dev); 2839 2842 pm_runtime_put_autosuspend(dev); 2840 2843 } 2841 2844 ··· 3611 3616 err_enet_alloc: 3612 3617 fec_enet_clk_enable(ndev, false); 3613 3618 clk_enable: 3614 - pm_runtime_mark_last_busy(&fep->pdev->dev); 3615 3619 pm_runtime_put_autosuspend(&fep->pdev->dev); 3616 3620 pinctrl_pm_select_sleep_state(&fep->pdev->dev); 3617 3621 return ret; ··· 3641 3647 cpu_latency_qos_remove_request(&fep->pm_qos_req); 3642 3648 3643 3649 pinctrl_pm_select_sleep_state(&fep->pdev->dev); 3644 - pm_runtime_mark_last_busy(&fep->pdev->dev); 3645 3650 pm_runtime_put_autosuspend(&fep->pdev->dev); 3646 3651 3647 3652 fec_enet_free_buffers(ndev); ··· 4609 4616 4610 4617 INIT_WORK(&fep->tx_timeout_work, fec_enet_timeout_work); 4611 4618 4612 - pm_runtime_mark_last_busy(&pdev->dev); 4613 4619 pm_runtime_put_autosuspend(&pdev->dev); 4614 4620 4615 4621 return 0;
+1 -6
drivers/net/ethernet/renesas/ravb_main.c
··· 1975 1975 out_set_reset: 1976 1976 ravb_set_opmode(ndev, CCC_OPC_RESET); 1977 1977 out_rpm_put: 1978 - pm_runtime_mark_last_busy(dev); 1979 1978 pm_runtime_put_autosuspend(dev); 1980 1979 out_napi_off: 1981 1980 if (info->nc_queues) ··· 2403 2404 if (error) 2404 2405 return error; 2405 2406 2406 - pm_runtime_mark_last_busy(dev); 2407 2407 pm_runtime_put_autosuspend(dev); 2408 2408 2409 2409 return 0; ··· 3091 3093 netdev_info(ndev, "Base address at %#x, %pM, IRQ %d.\n", 3092 3094 (u32)ndev->base_addr, ndev->dev_addr, ndev->irq); 3093 3095 3094 - pm_runtime_mark_last_busy(&pdev->dev); 3095 3096 pm_runtime_put_autosuspend(&pdev->dev); 3096 3097 3097 3098 return 0; ··· 3274 3277 return 0; 3275 3278 3276 3279 out_rpm_put: 3277 - if (!priv->wol_enabled) { 3278 - pm_runtime_mark_last_busy(dev); 3280 + if (!priv->wol_enabled) 3279 3281 pm_runtime_put_autosuspend(dev); 3280 - } 3281 3282 3282 3283 return ret; 3283 3284 }
-7
drivers/net/ethernet/ti/davinci_mdio.c
··· 234 234 235 235 ret = mdiobb_read_c22(bus, phy, reg); 236 236 237 - pm_runtime_mark_last_busy(bus->parent); 238 237 pm_runtime_put_autosuspend(bus->parent); 239 238 240 239 return ret; ··· 250 251 251 252 ret = mdiobb_write_c22(bus, phy, reg, val); 252 253 253 - pm_runtime_mark_last_busy(bus->parent); 254 254 pm_runtime_put_autosuspend(bus->parent); 255 255 256 256 return ret; ··· 266 268 267 269 ret = mdiobb_read_c45(bus, phy, devad, reg); 268 270 269 - pm_runtime_mark_last_busy(bus->parent); 270 271 pm_runtime_put_autosuspend(bus->parent); 271 272 272 273 return ret; ··· 282 285 283 286 ret = mdiobb_write_c45(bus, phy, devad, reg, val); 284 287 285 - pm_runtime_mark_last_busy(bus->parent); 286 288 pm_runtime_put_autosuspend(bus->parent); 287 289 288 290 return ret; ··· 328 332 data->bus->phy_mask = phy_mask; 329 333 330 334 done: 331 - pm_runtime_mark_last_busy(data->dev); 332 335 pm_runtime_put_autosuspend(data->dev); 333 336 334 337 return 0; ··· 436 441 break; 437 442 } 438 443 439 - pm_runtime_mark_last_busy(data->dev); 440 444 pm_runtime_put_autosuspend(data->dev); 441 445 return ret; 442 446 } ··· 472 478 break; 473 479 } 474 480 475 - pm_runtime_mark_last_busy(data->dev); 476 481 pm_runtime_put_autosuspend(data->dev); 477 482 478 483 return ret;