]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: stmmac: set initial EEE policy configuration
authorChoong Yong Liang <yong.liang.choong@linux.intel.com>
Wed, 20 Nov 2024 08:38:18 +0000 (16:38 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Nov 2024 09:17:00 +0000 (10:17 +0100)
Set the initial eee_cfg values to have 'ethtool --show-eee ' display
the initial EEE configuration.

Fixes: 49168d1980e2 ("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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index 3cdc3910f3a088edf98f24bb951ff58d03ae5441..9b262cdad60b28befcc8d92111c8feb9d65c6bcc 100644 (file)
@@ -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);