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

Commit b9849860 authored by Emiliano Ingrassia's avatar Emiliano Ingrassia Committed by David S. Miller
Browse files

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: default avatarEmiliano Ingrassia <ingrassia@epigenesys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e7ad9793
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;