]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mvneta: convert to phylink EEE implementation
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 15 Jan 2025 20:42:47 +0000 (20:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jan 2025 01:22:59 +0000 (17:22 -0800)
commitac79927dc84fac4fb2119ffb14391e721f6117c2
tree85c87ea22e507da3bd374efd4792bb37c569f0ae
parent03abf2a7c65451e663b078b0ed1bfa648cd9380f
net: mvneta: convert to phylink EEE implementation

Convert mvneta to use phylink's EEE implementation by implementing the
two LPI control methods, and adding the initial configuration and
capabilities.

Although disabling LPI requires clearing a single bit, for safety we
clear the manual mode and force bits to ensure that auto mode will be
used.

Enabling LPI needs a full configuration of several values, as the timer
values are dependent on the MAC operating speed, as per the original
code.

As Armada 388 states that EEE is only supported in "SGMII" modes, mark
this in lpi_interfaces. Testing with RGMII on the Clearfog platform
indicates that the receive path fails to detect LPI over RGMII.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/E1tYADv-0014Pt-NO@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvneta.c