Re: [PATCH net-next v2 4/7] net: lan743x: keep the fixed link across reopen

From: Andrew Lunn

Date: Tue Nov 24 2026 - 19:32:34 EST


On Tue, Nov 24, 2026 at 09:33:19AM -0500, Chris Babroski wrote:
> On LAN7431 and PCI11x1x boards with no DT node and no PHY on the MDIO
> bus, lan743x_phylink_connect() falls back to a fixed link with
> phylink_set_fixed_link(). That switches phylink to fixed-link mode,
> which neither phylink_stop() nor phylink_disconnect_phy() undoes.

I can understand your fix, but architecturally, it is wrong.

Anything which open() does, close() should undo.

Anything which lan743x_phylink_connect() does,
lan743x_phylink_disconnect() should undo.

So this might need you to add a phylink_unset_fixed_link() do undo
what phylink_set_fixed_link() did.

Andrew

---
pw-bot: cr