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

Commit dec2165f authored by Sonic Zhang's avatar Sonic Zhang Committed by David S. Miller
Browse files

stmmac: hardware TX COE doesn't work when force_thresh_dma_mode is set



Clear the TX COE bit when force_thresh_dma_mode is set even hardware
dma capability says support.

Tested on BF609.

Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Acked-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c405abe2
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -2755,6 +2755,10 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
		priv->plat->enh_desc = priv->dma_cap.enh_desc;
		priv->plat->enh_desc = priv->dma_cap.enh_desc;
		priv->plat->pmt = priv->dma_cap.pmt_remote_wake_up;
		priv->plat->pmt = priv->dma_cap.pmt_remote_wake_up;


		/* TXCOE doesn't work in thresh DMA mode */
		if (priv->plat->force_thresh_dma_mode)
			priv->plat->tx_coe = 0;
		else
			priv->plat->tx_coe = priv->dma_cap.tx_coe;
			priv->plat->tx_coe = priv->dma_cap.tx_coe;


		if (priv->dma_cap.rx_coe_type2)
		if (priv->dma_cap.rx_coe_type2)