]> Gentwo Git Trees - linux/.git/commit
net: stmmac: move initialisation of priv->tx_lpi_timer to stmmac_open()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 23 Sep 2025 11:26:14 +0000 (12:26 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Sep 2025 00:40:22 +0000 (17:40 -0700)
commitbae62989a31bde4018dc007b01d7cb408ccc91d7
tree10b5dcf4f88e4d43aa58095083c1dda736577703
parent9641d727162d674902c7107eeab23a7849d5ff09
net: stmmac: move initialisation of priv->tx_lpi_timer to stmmac_open()

The initialisation of priv->tx_lpi_timer only happens once during the
lifetime of the driver, which is during the initial administrative
open of the device. Move this initialisation out of __stmmac_open()
into stmmac_open().

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1v119y-0000000774A-2vvl@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c