Skip to content

Commit 59c5e14

Browse files
Choong Yong LiangPaolo Abeni
authored andcommitted
net: stmmac: set initial EEE policy configuration
Set the initial eee_cfg values to have 'ethtool --show-eee ' display the initial EEE configuration. Fixes: 49168d1 ("net: phy: Add phy_support_eee() indicating MAC support EEE") Cc: <[email protected]> Signed-off-by: Choong Yong Liang <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 70ab873 commit 59c5e14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,9 @@ static int stmmac_init_phy(struct net_device *dev)
11771177
return -ENODEV;
11781178
}
11791179

1180+
if (priv->dma_cap.eee)
1181+
phy_support_eee(phydev);
1182+
11801183
ret = phylink_connect_phy(priv->phylink, phydev);
11811184
} else {
11821185
fwnode_handle_put(phy_fwnode);

0 commit comments

Comments
 (0)