]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: microchip: add downshift tunable support for LAN88xx
authorNicolai Buchwitz <nb@tipi-net.de>
Wed, 1 Apr 2026 12:38:44 +0000 (14:38 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 01:03:03 +0000 (18:03 -0700)
commite417ac73d24ae68b8dd6a1b02f9db03a7a5c184b
treed17f8163416485286053d65e1f6f6a0d911a1bb6
parent86f5dd4e0ff282a0acf1f058e947fd5f4ba58a9d
net: phy: microchip: add downshift tunable support for LAN88xx

Implement the standard ETHTOOL_PHY_DOWNSHIFT tunable for the LAN88xx
PHY. This allows runtime configuration of the auto-downshift feature
via ethtool:

  ethtool --set-phy-tunable eth0 downshift on count 3

The LAN88xx PHY supports downshifting from 1000BASE-T to 100BASE-TX
after 2-5 failed auto-negotiation attempts. Valid count values are
2, 3, 4 and 5.

This is based on an earlier downstream implementation by Phil Elwell.

Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20260401123848.696766-2-nb@tipi-net.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/microchip.c
include/linux/microchipphy.h