+ /* The EN7528 LAN GPHYs advertise EEE by default, but negotiating EEE
+ * with common link partners (e.g. Realtek GbE NICs) results in an
+ * unstable link with dropped frames. Disable EEE advertisement on
+ * them.
+ */
+ if (priv->id == ID_EN7528)
+ for (i = EN7528_GPHY_BASE;
+ i < EN7528_GPHY_BASE + EN7528_NUM_GPHYS; i++)
+ mt7531_ind_c45_phy_write(priv, i, MDIO_MMD_AN,
+ MDIO_AN_EEE_ADV, 0);
+
The problem with this is, you can still use ethtool to enable EEE.
Please look at phylink_bringup_phy(), where it calls
phy_disable_eee().
Andrew
---
pw-bot: cr