Merge "net: stmmac: Fixed early Ethernet"

This commit is contained in:
qctecmdr 2024-04-26 02:51:56 -07:00 committed by Gerrit - the friendly Code Review server
commit e06d4bc3a4

View File

@ -1050,7 +1050,7 @@ static void stmmac_validate(struct phylink_config *config,
/* Early ethernet settings to bring up link in 100M,
* Auto neg Off with full duplex link.
*/
if (priv->early_eth && !priv->early_eth_config_set) {
if (priv->phydev && priv->plat->early_eth && !priv->early_eth_config_set) {
priv->phydev->autoneg = AUTONEG_DISABLE;
priv->phydev->speed = SPEED_100;
priv->phydev->duplex = DUPLEX_FULL;