Skip to content

Commit

Permalink
net: stmmac: dwmac_lib: fix interchanged sleep/timeout values in DMA …
Browse files Browse the repository at this point in the history
…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: 8a70aec ("net: stmmac: Use readl_poll_timeout")

Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Emiliano Ingrassia authored and David S. Miller committed Oct 13, 2017
1 parent e7ad979 commit b984986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b984986

Please sign in to comment.