Skip to content

Commit a324217

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: stmmac: convert to use phy_eee_rx_clock_stop()
Convert stmmac to use phy_eee_rx_clock_stop() to set the PHY receive clock stop in LPI setting, rather than calling the legacy phy_init_eee() function. Reviewed-by: Andrew Lunn <[email protected]> Tested-by: Choong Yong Liang <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 517dc04 commit a324217

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,10 +1077,10 @@ static void stmmac_mac_link_up(struct phylink_config *config,
10771077

10781078
stmmac_mac_set(priv, priv->ioaddr, true);
10791079
if (phy && priv->dma_cap.eee) {
1080-
priv->eee_active = phy->enable_tx_lpi &&
1081-
phy_init_eee(phy, !(priv->plat->flags &
1082-
STMMAC_FLAG_RX_CLK_RUNS_IN_LPI)) >= 0;
1080+
phy_eee_rx_clock_stop(phy, !(priv->plat->flags &
1081+
STMMAC_FLAG_RX_CLK_RUNS_IN_LPI));
10831082
priv->tx_lpi_timer = phy->eee_cfg.tx_lpi_timer;
1083+
priv->eee_active = phy->enable_tx_lpi;
10841084
priv->eee_enabled = stmmac_eee_init(priv);
10851085
stmmac_set_eee_pls(priv, priv->hw, true);
10861086
}

0 commit comments

Comments
 (0)