]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 17:25:40 +0000 (18:25 +0100)
commit050f2e62b13c92ff41ae263aec94181160617b13
tree21d8c9438b521c6cc10d5082f489464fca52e224
parent4e8b8d43373bf837be159366f0192502f97ec7a5
net: stmmac: dwmac-loongson: Add fix_soc_reset() callback

commit f06e4bfd010faefa637689d2df2c727dbf6e1d27 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c