🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Andrew Lunn Wed, 25 Nov 2026 00:32
Re: [PATCH net-next v2 4/7] net: lan743x: keep the fixed link across reopen
#22215
Author: Andrew Lunn
Date: Wed, 25 Nov 2026 00:32
21 lines
9102 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads