It seems there are some circumstances in the latest MC firmware versions
where an empty advertising field is returned by the dpmac_get_link_cfg()
command. This will eventually lead to the link not going up.
Work around this issue by skipping PHY reconfiguration if this happens.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
return;
}
+ /* There are some circumstances (MC bugs) when the advertising is all
+ * zeroes. Just skip any configuration if this happens.
+ */
+ if (!link_cfg.advertising)
+ return;
+
phylink_ethtool_ksettings_get(priv->phylink, &priv->kset);
priv->kset.base.speed = link_cfg.rate;