summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFugang Duan <fugang.duan@nxp.com>2020-12-07 18:51:37 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-21 13:28:18 +0100
commit2ab0a44384cbaa26b5bc6469e27c36afbd860c55 (patch)
tree3f65c771d9834d9874a07f58b7c3c852dd763029
parent8be0faf5c794bb586e26f0367623da9ba3db92dc (diff)
downloadlinux-stable-2ab0a44384cbaa26b5bc6469e27c36afbd860c55.tar.gz
linux-stable-2ab0a44384cbaa26b5bc6469e27c36afbd860c55.tar.bz2
linux-stable-2ab0a44384cbaa26b5bc6469e27c36afbd860c55.zip
net: stmmac: increase the timeout for dma reset
[ Upstream commit 9d14edfdeabf37d8d8f045e63e5873712aadcd6b ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
index 6e30d7eb4983..0b4ee2dbb691 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
@@ -22,7 +22,7 @@ int dwmac4_dma_reset(void __iomem *ioaddr)
return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value,
!(value & DMA_BUS_MODE_SFT_RESET),
- 10000, 100000);
+ 10000, 1000000);
}
void dwmac4_set_rx_tail_ptr(void __iomem *ioaddr, u32 tail_ptr, u32 chan)