net: lan743x: convert to phylink managed EEE
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 15 Jan 2025 20:43:03 +0000 (20:43 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jan 2025 01:23:00 +0000 (17:23 -0800)
commitbd691d5ca9182f0462d9546d22314f67d70ddaa1
treecf6e215b75ee5cbfd60a3ccfb85f32d77d861888
parenta66447966f03b04606a30e169c7cc2c6f8261bb7
net: lan743x: convert to phylink managed EEE

Convert lan743x to phylink managed EEE:
- Set the lpi_capabilties.
- Move the call to lan743x_mac_eee_enable() into the enable/disable
  tx_lpi functions.
- Ensure that EEEEN is clear during probe.
- Move the setting of the LPI timer into mac_enable_tx_lpi().
- Move reading of LPI timer to phylink initialisation to set the
  default timer value.

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/E1tYAEB-0014QB-4s@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan743x_ethtool.c
drivers/net/ethernet/microchip/lan743x_main.c
drivers/net/ethernet/microchip/lan743x_main.h