]> www.infradead.org Git - users/hch/misc.git/commit
net: phylink: force link down on major_config failure
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 24 Mar 2025 16:40:08 +0000 (16:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 20:36:17 +0000 (13:36 -0700)
commitf1ae32a709e0b525d7963207eb3a4747626f4818
treededd8cf16306a02892c2e85d1299ff3666904766
parentcc04ed502457412960d215b9cd55f0d966fda255
net: phylink: force link down on major_config failure

If we fail to configure the MAC or PCS according to the desired mode,
do not allow the network link to come up until we have successfully
configured the MAC and PCS. This improves phylink's behaviour when an
error occurs.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1twkqO-0006FI-Gm@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c