mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Merge "net : stmmac: Fix the MAC2MAC crash"
This commit is contained in:
commit
96c259b7ef
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user