Loongson's DWMAC device may take nearly two seconds to complete DMA reset,
however, the default waiting time for reset is 200 milliseconds.
Therefore, the following error message may appear:
[14.427169] dwmac-loongson-pci 0000:00:03.2: Failed to reset the dma
Fixes: 803fc61df261 ("net: stmmac: dwmac-loongson: Add Loongson Multi-channels GMAC support")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Qunqin Zhao <zhaoqunqin@xxxxxxxxxxx>
Reviewed-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
---
v3: Added "Cc: stable@xxxxxxxxxxxxxxx" tag.
Added error message to commit message.
v2: Added comments. Changed callback name to loongson_dwmac_fix_reset.
.../net/ethernet/stmicro/stmmac/dwmac-loongson.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)