From 0eaf04ef4963db173428da176f52320754b0574c Mon Sep 17 00:00:00 2001 From: Hal Feng Date: Thu, 10 Oct 2024 11:05:20 +0800 Subject: [PATCH 19/55] net: stmmac: Extend waiting time of dma reset Fix dma reset failure happening when disabling network. Signed-off-by: Hal Feng --- drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c @@ -23,7 +23,7 @@ int dwmac4_dma_reset(void __iomem *ioadd return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value, !(value & DMA_BUS_MODE_SFT_RESET), - 10000, 1000000); + 10000, 3000000); } void dwmac4_set_rx_tail_ptr(struct stmmac_priv *priv, void __iomem *ioaddr,