]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: mvpp2: add EEE implementation
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 15 Jan 2025 20:42:52 +0000 (20:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jan 2025 01:23:00 +0000 (17:23 -0800)
commitb53b14786ed8aa8934504b047570cd5cd4e3a0e0
tree9c2673d364e7d75f3d0db5584df35528617df860
parentac79927dc84fac4fb2119ffb14391e721f6117c2
net: mvpp2: add EEE implementation

Add EEE support for mvpp2, using phylink's EEE implementation, which
means we just need to implement the two methods for LPI control, and
with the initial configuration. Only SGMII mode is supported, so only
100M and 1G speeds.

Disabling LPI requires clearing a single bit. Enabling LPI needs a full
configuration of several values, as the timer values are dependent on
the MAC operating speed.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/E1tYAE0-0014Pz-R9@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c