mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
net: stmmac: set initial EEE policy configuration
Set the initial eee_cfg values to have 'ethtool --show-eee ' display
the initial EEE configuration.
Fixes: 49168d1980 ("net: phy: Add phy_support_eee() indicating MAC support EEE")
Cc: <stable@vger.kernel.org>
Signed-off-by: Choong Yong Liang <yong.liang.choong@linux.intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20241120083818.1079456-1-yong.liang.choong@linux.intel.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
70ab873797
commit
59c5e1411a
|
|
@ -1177,6 +1177,9 @@ static int stmmac_init_phy(struct net_device *dev)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (priv->dma_cap.eee)
|
||||
phy_support_eee(phydev);
|
||||
|
||||
ret = phylink_connect_phy(priv->phylink, phydev);
|
||||
} else {
|
||||
fwnode_handle_put(phy_fwnode);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user