[PATCH v2 net-next] net: stmmac: mdio: fix incorrect phy address check
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Wed Oct 29 19:00:17 PDT 2025
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba at kernel.org>:
On Sat, 25 Oct 2025 20:35:47 +0200 you wrote:
> max_addr is the max number of addresses, not the highest possible address,
> therefore check phydev->mdio.addr > max_addr isn't correct.
> To fix this change the semantics of max_addr, so that it represents
> the highest possible address. IMO this is also a little bit more intuitive
> wrt name max_addr.
>
> Fixes: 4a107a0e8361 ("net: stmmac: mdio: use phy_find_first to simplify stmmac_mdio_register")
> Reported-by: Dan Carpenter <dan.carpenter at linaro.org>
> Reported-by: Simon Horman <horms at kernel.org>
> Signed-off-by: Heiner Kallweit <hkallweit1 at gmail.com>
>
> [...]
Here is the summary with links:
- [v2,net-next] net: stmmac: mdio: fix incorrect phy address check
https://git.kernel.org/netdev/net-next/c/cf35f4347ddd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-arm-kernel
mailing list