summaryrefslogtreecommitdiff
path: root/drivers/net/phy/phylink.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-11-23 20:17:42 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2025-09-29 10:14:56 +0100
commit024df99d592211a33b69171b8d444b2d34b29b72 (patch)
tree3d518f6dae1da52b4943eacc5e113d32425108d3 /drivers/net/phy/phylink.c
parent72ebc9abe4552d0816ab5a738f5f06bcd9598039 (diff)
net: phylink: pass PHY interface mode into MAC LPI methods
Ass the PHY interface mode into mac_disable_tx_lpi() and mac_enable_tx_lpi() methods. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/net/phy/phylink.c')
-rw-r--r--drivers/net/phy/phylink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 575c5555d6ba..8c92168a3fdd 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -1486,7 +1486,7 @@ static void phylink_deactivate_lpi(struct phylink *pl)
phylink_dbg(pl, "disabling LPI\n");
- pl->mac_ops->mac_disable_tx_lpi(pl->config);
+ pl->mac_ops->mac_disable_tx_lpi(pl->config, pl->cur_interface);
phylink_pcs_disable_eee(pl->pcs);
}
@@ -1507,7 +1507,8 @@ static void phylink_activate_lpi(struct phylink *pl)
phylink_pcs_enable_eee(pl->pcs);
- err = pl->mac_ops->mac_enable_tx_lpi(pl->config, pl->mac_tx_lpi_timer,
+ err = pl->mac_ops->mac_enable_tx_lpi(pl->config, pl->cur_interface,
+ pl->mac_tx_lpi_timer,
pl->mac_tx_clk_stop);
if (!err) {
pl->mac_enable_tx_lpi = true;