Re: [PATCH net-next v2] net: mdio: handle broken-turn-around for non-PHY MDIO devices

From: Bastian Germann

Date: Sat Nov 21 2026 - 14:08:05 EST


Hi Andrew,

On 11/21/26 18:06, Andrew Lunn wrote:
Parse the property in of_mdiobus_register_phy() and
of_mdiobus_register_device() instead, so it is handled in one place for
both PHYs and other MDIO devices, and drop it from
fwnode_mdiobus_phy_device_register().
This seems odd. "handled in one place", yet you do it in two?

Is there a reason not to do it in __of_mdiobus_parse_phys() ?

Yes. My v2 draft was exactly that (which is the reason for the commit message oddity) but I noticed that children with empty reg that are handled in the auto-scan loop would then not get the bit mask set, which is an unnecessary behavior change for PHYs. I will send a v3 with your proposal. I am happy with either of them.

Thanks,
Bastian