Skip to content

Commit 9d14edf

Browse files
fugangduandavem330
authored andcommitted
net: stmmac: increase the timeout for dma reset
Current timeout value is not enough for gmac5 dma reset on imx8mp platform, increase the timeout range. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 007ab53 commit 9d14edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int dwmac4_dma_reset(void __iomem *ioaddr)
2222

2323
return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value,
2424
!(value & DMA_BUS_MODE_SFT_RESET),
25-
10000, 100000);
25+
10000, 1000000);
2626
}
2727

2828
void dwmac4_set_rx_tail_ptr(void __iomem *ioaddr, u32 tail_ptr, u32 chan)

0 commit comments

Comments
 (0)