diff options
author | 2025-01-13 11:46:00 +0000 | |
---|---|---|
committer | 2025-01-14 18:22:04 -0800 | |
commit | 0cf44bd0c118bcbbbb10f0cc740cd64db227496f (patch) | |
tree | 80f79cef5fb2e15f010193546cde24d988038f21 /drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c | |
parent | net: stmmac: check priv->eee_sw_timer_en in suspend path (diff) | |
download | wireguard-linux-0cf44bd0c118bcbbbb10f0cc740cd64db227496f.tar.xz wireguard-linux-0cf44bd0c118bcbbbb10f0cc740cd64db227496f.zip |
net: stmmac: add stmmac_try_to_start_sw_lpi()
There are two places which call stmmac_enable_eee_mode() and follow it
immediately by modifying the expiry of priv->eee_ctrl_timer. Both code
paths are trying to enable LPI mode. Remove this duplication by
providing a function for this.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1tXItM-000MBI-CX@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c')
0 files changed, 0 insertions, 0 deletions