From: Andrew Lunn <andrew@lunn.ch>
To: Chris Babroski <cbabroski@nvidia.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
bryan.whitehead@microchip.com, UNGLinuxDriver@microchip.com,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com,
linux@armlinux.org.uk, Raju.Lakkaraju@microchip.com,
maxime.chevallier@bootlin.com, yuiko.oshino@microchip.com,
nb@tipi-net.de, woojung.huh@microchip.com
Subject: Re: [PATCH net-next v2 4/7] net: lan743x: keep the fixed link across reopen
Date: Wed, 25 Nov 2026 01:32:22 +0100 [thread overview]
Message-ID: <e6e313c6-aff0-4110-a12d-bd26b012b6e9@lunn.ch> (raw)
In-Reply-To: <ef118120626788ecb28b9d38283ca0130625f921.1795027003.git.cbabroski@nvidia.com>
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
next prev parent reply other threads:[~2026-11-25 0:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 14:33 [PATCH net-next v2 0/7] net: lan743x: automatically recover from TX hang Chris Babroski
2026-11-24 14:33 ` [PATCH net-next v2 1/7] net: lan743x: check DMA channel stop and reset results Chris Babroski
2026-11-24 14:33 ` [PATCH net-next v2 2/7] net: lan743x: quiesce TX before freeing the rings Chris Babroski
2026-11-24 14:33 ` [PATCH net-next v2 3/7] net: lan743x: start phylink last and stop it first Chris Babroski
2026-11-24 14:33 ` [PATCH net-next v2 4/7] net: lan743x: keep the fixed link across reopen Chris Babroski
2026-11-25 0:32 ` Andrew Lunn [this message]
2026-11-24 14:33 ` [PATCH net-next v2 5/7] net: lan743x: handle a failed reopen on resume Chris Babroski
2026-11-24 14:33 ` [PATCH net-next v2 6/7] net: lan743x: reset the device on TX timeout Chris Babroski
2026-11-24 14:33 ` [PATCH net-next v2 7/7] net: lan743x: add byte queue limits support Chris Babroski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e6e313c6-aff0-4110-a12d-bd26b012b6e9@lunn.ch \
--to=andrew@lunn.ch \
--cc=Raju.Lakkaraju@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew+netdev@lunn.ch \
--cc=bryan.whitehead@microchip.com \
--cc=cbabroski@nvidia.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=nb@tipi-net.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=woojung.huh@microchip.com \
--cc=yuiko.oshino@microchip.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®