Merge "net : stmmac: Fix the MAC2MAC crash"

This commit is contained in:
qctecmdr 2020-09-18 04:24:48 -07:00 committed by Gerrit - the friendly Code Review server
commit 96c259b7ef

View File

@ -296,6 +296,12 @@ static inline u32 stmmac_rx_dirty(struct stmmac_priv *priv, u32 queue)
static inline void stmmac_hw_fix_mac_speed(struct stmmac_priv *priv)
{
if (likely(priv->plat->fix_mac_speed)) {
if (priv->plat->mac2mac_en) {
priv->plat->fix_mac_speed(priv->plat->bsp_priv,
priv->speed);
return;
}
if (priv->phydev->link)
priv->plat->fix_mac_speed(priv->plat->bsp_priv,
priv->speed);