]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: dwmac-loongson: Add fix_soc_reset() callback
authorQunqin Zhao <zhaoqunqin@loongson.cn>
Wed, 19 Feb 2025 02:07:01 +0000 (10:07 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Feb 2025 01:19:41 +0000 (17:19 -0800)
commitf06e4bfd010faefa637689d2df2c727dbf6e1d27
treea3fa3452235604f5f011d2937c05b18ba330c28b
parent992ee3ed6e9fdd0be83a7daa5ff738e3cf86047f
net: stmmac: dwmac-loongson: Add fix_soc_reset() callback

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@vger.kernel.org
Signed-off-by: Qunqin Zhao <zhaoqunqin@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Yanteng Si <si.yanteng@linux.dev>
Link: https://patch.msgid.link/20250219020701.15139-1-zhaoqunqin@loongson.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c