Re: [PATCH net-next v3] net: mdio: handle broken-turn-around for non-PHY MDIO devices
From: Andrew Lunn
Date: Sun Nov 22 2026 - 16:28:07 EST
On Sat, Nov 21, 2026 at 08:36:55PM +0100, Bastian Germann wrote:
> From: "Signed-off-by: Bastian Germann" <bage@xxxxxxxxxx>
>
> The "broken-turn-around" property is documented in mdio.yaml for any
> MDIO device, but the MDIO core currently parses it only for PHY devices
> in fwnode_mdiobus_phy_device_register(). Non-PHY devices, such as DSA
> switches, are registered through of_mdiobus_register_device(), where the
> property is ignored, so MDIO bus drivers that rely on phy_ignore_ta_mask
> still treat the turn-around/read failure as an error.
>
> Parse the property once in __of_mdiobus_parse_phys(), before the PHY and
> non-PHY registration paths diverge, and drop it from
> fwnode_mdiobus_phy_device_register().
>
> Signed-off-by: Bastian Germann <bage@xxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew