Skip to content
Snippets Groups Projects
Commit 33544a59 authored by Choong Yong Liang's avatar Choong Yong Liang Committed by Greg Kroah-Hartman
Browse files

net: stmmac: set initial EEE policy configuration


commit 59c5e1411a0a13ebb930f4ebba495cc4eb14f8f2 upstream.

Set the initial eee_cfg values to have 'ethtool --show-eee ' display
the initial EEE configuration.

Fixes: 49168d19 ("net: phy: Add phy_support_eee() indicating MAC support EEE")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarChoong Yong Liang <yong.liang.choong@linux.intel.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20241120083818.1079456-1-yong.liang.choong@linux.intel.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0cfd6929
No related branches found
No related tags found
1 merge request!176🤖 Sync Bot: Update v6.12-ktn to Latest Stable Kernel (v6.12.4)
...@@ -1205,6 +1205,9 @@ static int stmmac_init_phy(struct net_device *dev) ...@@ -1205,6 +1205,9 @@ static int stmmac_init_phy(struct net_device *dev)
return -ENODEV; return -ENODEV;
} }
if (priv->dma_cap.eee)
phy_support_eee(phydev);
ret = phylink_connect_phy(priv->phylink, phydev); ret = phylink_connect_phy(priv->phylink, phydev);
} else { } else {
fwnode_handle_put(phy_fwnode); fwnode_handle_put(phy_fwnode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment