]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fec: use phydev->eee_cfg.tx_lpi_timer
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 10 Dec 2024 12:38:26 +0000 (12:38 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Dec 2024 04:23:52 +0000 (20:23 -0800)
commit3fa2540d93d85ad18456dbd29386c737ad3f7e02
tree7b5aab190c8646b51f63efb917ab2728869c6423
parent175dd9079ecbd86d0e10927c442d64519baf5809
net: fec: use phydev->eee_cfg.tx_lpi_timer

Rather than maintaining a private copy of the LPI timer, make use of
the LPI timer maintained by phylib. In any case, phylib overwrites the
value of tx_lpi_timer set by the driver in phy_ethtool_get_eee().

Note that feb->eee.tx_lpi_timer is initialised to zero, which is just
the same with phylib's copy, so there should be no functional change.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/E1tKzVS-006c67-IJ@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c