Re: [PATCH net] net: phy: Warn about incorrect mdio_bus_phy_resume() state

From: patchwork-bot+netdevbpf
Date: Wed Aug 03 2022 - 22:40:20 EST


Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Mon, 1 Aug 2022 16:34:03 -0700 you wrote:
> Calling mdio_bus_phy_resume() with neither the PHY state machine set to
> PHY_HALTED nor phydev->mac_managed_pm set to true is a good indication
> that we can produce a race condition looking like this:
>
> CPU0 CPU1
> bcmgenet_resume
> -> phy_resume
> -> phy_init_hw
> -> phy_start
> -> phy_resume
> phy_start_aneg()
> mdio_bus_phy_resume
> -> phy_resume
> -> phy_write(..., BMCR_RESET)
> -> usleep() -> phy_read()
>
> [...]

Here is the summary with links:
- [net] net: phy: Warn about incorrect mdio_bus_phy_resume() state
https://git.kernel.org/netdev/net/c/744d23c71af3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html