提交 c405abe2 编写于 作者: S Sonic Zhang 提交者: David S. Miller

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: NSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6039e3df
...@@ -1454,7 +1454,11 @@ static void stmmac_dma_interrupt(struct stmmac_priv *priv) ...@@ -1454,7 +1454,11 @@ static void stmmac_dma_interrupt(struct stmmac_priv *priv)
/* Try to bump up the dma threshold on this failure */ /* Try to bump up the dma threshold on this failure */
if (unlikely(tc != SF_DMA_MODE) && (tc <= 256)) { if (unlikely(tc != SF_DMA_MODE) && (tc <= 256)) {
tc += 64; 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; priv->xstats.threshold = tc;
} }
} else if (unlikely(status == tx_hard_error)) } else if (unlikely(status == tx_hard_error))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册