Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71965352 authored by Giuseppe CAVALLARO's avatar Giuseppe CAVALLARO Committed by David S. Miller
Browse files

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: default avatarnandini sharma <nandini.sharma@st.com>
Signed-off-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 56b88c25
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -321,10 +321,9 @@ bool stmmac_eee_init(struct stmmac_priv *priv)
			priv->hw->mac->set_eee_timer(priv->hw,
						     STMMAC_DEFAULT_LIT_LS,
						     tx_lpi_timer);
		} else
		}
		/* Set HW EEE according to the speed */
			priv->hw->mac->set_eee_pls(priv->hw,
						   priv->phydev->link);
		priv->hw->mac->set_eee_pls(priv->hw, priv->phydev->link);

		pr_debug("stmmac: Energy-Efficient Ethernet initialized\n");