]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: dwmac-sophgo: Add phy interface filter
authorInochi Amaoto <inochiama@gmail.com>
Fri, 14 Nov 2025 00:38:05 +0000 (08:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:04 +0000 (14:03 +0100)
commit26815698b6fbdf97f74f0bed9747543adc7bbbf5
treed13bf6007e2e4bd6a6589a9098d22fccdc25ed26
parentd2b57ba171648096b77c493d4e142e1b6f26e546
net: stmmac: dwmac-sophgo: Add phy interface filter

[ Upstream commit db37c6e510deabc9b0ee27c08f1c5aaa19f2e8ef ]

As the SG2042 has an internal rx delay, the delay should be removed
when initializing the mac, otherwise the phy will be misconfigurated.

Fixes: 543009e2d4cd ("net: stmmac: dwmac-sophgo: Add support for Sophgo SG2042 SoC")
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Tested-by: Han Gao <rabenda.cn@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251114003805.494387-4-inochiama@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c