提交 b9849860 编写于 作者: E Emiliano Ingrassia 提交者: David S. Miller

net: stmmac: dwmac_lib: fix interchanged sleep/timeout values in DMA reset function

The DMA reset timeout, used in read_poll_timeout, is
ten times shorter than the sleep time.
This patch fixes these values interchanging them, as it was
before the read_poll_timeout introduction.

Fixes: 8a70aeca ("net: stmmac: Use readl_poll_timeout")
Signed-off-by: NEmiliano Ingrassia <ingrassia@epigenesys.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e7ad9793
......@@ -34,7 +34,7 @@ int dwmac_dma_reset(void __iomem *ioaddr)
err = readl_poll_timeout(ioaddr + DMA_BUS_MODE, value,
!(value & DMA_BUS_MODE_SFT_RESET),
100000, 10000);
10000, 100000);
if (err)
return -EBUSY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册