mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 23:20:05 +00:00
net: stmmac: dwmac_lib: enlarge dma reset timeout
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>
This commit is contained in:
parent
796a2665ca
commit
56311a315d
@ -23,7 +23,7 @@ int dwmac_dma_reset(void __iomem *ioaddr)
|
|||||||
|
|
||||||
return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value,
|
return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value,
|
||||||
!(value & DMA_BUS_MODE_SFT_RESET),
|
!(value & DMA_BUS_MODE_SFT_RESET),
|
||||||
10000, 100000);
|
10000, 200000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CSR1 enables the transmit DMA to check for new descriptor */
|
/* CSR1 enables the transmit DMA to check for new descriptor */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user