linux-stable/drivers/net/ethernet/freescale
Andrew Lunn 6a2495adc0 net: fec: Fixup EEE
The enabling/disabling of EEE in the MAC should happen as a result of
auto negotiation. So move the enable/disable into
fec_enet_adjust_link() which gets called by phylib when there is a
change in link status.

fec_enet_set_eee() now just stores away the LPI timer value.
Everything else is passed to phylib, so it can correctly setup the
PHY.

fec_enet_get_eee() relies on phylib doing most of the work,
the MAC driver just adds the LPI timer value.

Call phy_support_eee() if the quirk is present to indicate the MAC
actually supports EEE.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Oleksij Rempel <o.rempel@pengutronix.de> (On iMX8MP debix)
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Wei Fang <wei.fang@nxp.com>
Link: https://lore.kernel.org/r/20240302195306.3207716-8-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-05 19:21:17 -08:00
..
dpaa eth: dpaa: add missing net/xdp.h include 2023-08-03 16:17:34 -07:00
dpaa2 dpaa2-switch: cleanup the egress flood of an unused FDB 2023-12-23 01:18:59 +00:00
enetc ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side 2024-01-31 12:30:47 +00:00
fman net: dpaa: fman_memac: accept phy-interface-type = "10gbase-r" in the device tree 2024-02-23 11:22:42 +00:00
fs_enet net: ethernet: Use device_get_match_data() 2023-10-13 10:04:53 +01:00
fec.h ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side 2024-01-31 12:30:47 +00:00
fec_main.c net: fec: Fixup EEE 2024-03-05 19:21:17 -08:00
fec_mpc52xx.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
fec_mpc52xx.h
fec_mpc52xx_phy.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
fec_ptp.c net: fec: delete fec_ptp_disable_hwts() 2023-08-02 19:11:06 -07:00
fsl_pq_mdio.c net: fill in MODULE_DESCRIPTION()s for fsl_pq_mdio 2024-01-24 15:12:21 -08:00
gianfar.c ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side 2024-01-31 12:30:47 +00:00
gianfar.h
gianfar_ethtool.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
Kconfig net: fec: allow to build without PAGE_POOL_STATS 2023-06-20 12:11:59 -07:00
Makefile
ucc_geth.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
ucc_geth.h
ucc_geth_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
xgmac_mdio.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00