Skip to content

Commit

Permalink
net: stmmac: dwmac_lib: enlarge dma reset timeout
Browse files Browse the repository at this point in the history
[ Upstream commit 56311a3 ]

If the phy enables power saving technology, the dwmac's software reset
needs more time to complete, enlarge dma reset timeout to 200000us.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20201113090902.5c7aab1a@xhacker.debian
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Jisheng Zhang authored and gregkh committed Dec 2, 2020
1 parent 2da8df0 commit 32944d8
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 @@ -23,7 +23,7 @@ int dwmac_dma_reset(void __iomem *ioaddr)

return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value,
!(value & DMA_BUS_MODE_SFT_RESET),
10000, 100000);
10000, 200000);
}

/* CSR1 enables the transmit DMA to check for new descriptor */
Expand Down

0 comments on commit 32944d8

Please sign in to comment.