]> git.ipfire.org Git - thirdparty/linux.git/commit
net: phy: microchip: enable downshift by default on LAN88xx
authorNicolai Buchwitz <nb@tipi-net.de>
Wed, 1 Apr 2026 12:38:45 +0000 (14:38 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 01:03:03 +0000 (18:03 -0700)
commit70180f72d91144f4c7b308ffa87bbf3592cd8d65
tree2cda27ce58849830465165af3c980ad31dfaaefa
parente417ac73d24ae68b8dd6a1b02f9db03a7a5c184b
net: phy: microchip: enable downshift by default on LAN88xx

Enable auto-downshift from 1000BASE-T to 100BASE-TX after 2 failed
auto-negotiation attempts by default. This ensures that links with
faulty or missing cable pairs (C and D) fall back to 100Mbps without
requiring userspace configuration.

The downshift count is stored in the driver's private data and applied
in config_init, so user changes via ethtool are preserved across
suspend/resume cycles.

Users can override or disable downshift at runtime:

  ethtool --set-phy-tunable eth0 downshift off

Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20260401123848.696766-3-nb@tipi-net.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/microchip.c