浏览代码

stmmac: fix PLS bit setting when EEE is active

In case of PLS is active the PLS (PHY Link Status) bit in
the Reg12 has to be set to allow the MAC to asserts the LPI
pattern when the link is ok.

Signed-off-by: nandini sharma <nandini.sharma@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Giuseppe CAVALLARO 11 年之前
父节点
当前提交
71965352ee
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

+ 3 - 4
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

@@ -321,10 +321,9 @@ bool stmmac_eee_init(struct stmmac_priv *priv)
 			priv->hw->mac->set_eee_timer(priv->hw,
 			priv->hw->mac->set_eee_timer(priv->hw,
 						     STMMAC_DEFAULT_LIT_LS,
 						     STMMAC_DEFAULT_LIT_LS,
 						     tx_lpi_timer);
 						     tx_lpi_timer);
-		} else
-			/* Set HW EEE according to the speed */
-			priv->hw->mac->set_eee_pls(priv->hw,
-						   priv->phydev->link);
+		}
+		/* Set HW EEE according to the speed */
+		priv->hw->mac->set_eee_pls(priv->hw, priv->phydev->link);
 
 
 		pr_debug("stmmac: Energy-Efficient Ethernet initialized\n");
 		pr_debug("stmmac: Energy-Efficient Ethernet initialized\n");