]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: dwmac4: extend timeout for VLAN Tag register busy bit check
authorShenwei Wang <shenwei.wang@nxp.com>
Tue, 24 Sep 2024 20:54:24 +0000 (15:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:21 +0000 (15:11 +0200)
commit105a292189f6f9d8a68e2b0e54b9734f5f2890fb
tree3638e0d14c853e87b478eec0f0ba33aa149ebe02
parenta785cbc8da302273756e8bc79db4d62b2a987952
net: stmmac: dwmac4: extend timeout for VLAN Tag register busy bit check

[ Upstream commit 4c1b56671b68ffcbe6b78308bfdda6bcce6491ae ]

Increase the timeout for checking the busy bit of the VLAN Tag register
from 10µs to 500ms. This change is necessary to accommodate scenarios
where Energy Efficient Ethernet (EEE) is enabled.

Overnight testing revealed that when EEE is active, the busy bit can
remain set for up to approximately 300ms. The new 500ms timeout provides
a safety margin.

Fixes: ed64639bc1e0 ("net: stmmac: Add support for VLAN Rx filtering")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Link: https://patch.msgid.link/20240924205424.573913-1-shenwei.wang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c