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

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

stmmac: if force_thresh_dma_mode is set, pass tc to both txmode and rxmode in...


stmmac: if force_thresh_dma_mode is set, pass tc to both txmode and rxmode in tx_hard_error_bump_tc interrupt

Dont' pass SF_DMA_MODE to rxmode in this case.

Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6039e3df
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1454,7 +1454,11 @@ static void stmmac_dma_interrupt(struct stmmac_priv *priv)
		/* Try to bump up the dma threshold on this failure */
		if (unlikely(tc != SF_DMA_MODE) && (tc <= 256)) {
			tc += 64;
			priv->hw->dma->dma_mode(priv->ioaddr, tc, SF_DMA_MODE);
			if (priv->plat->force_thresh_dma_mode)
				priv->hw->dma->dma_mode(priv->ioaddr, tc, tc);
			else
				priv->hw->dma->dma_mode(priv->ioaddr, tc,
					SF_DMA_MODE);
			priv->xstats.threshold = tc;
		}
	} else if (unlikely(status == tx_hard_error))