]> www.infradead.org Git - users/dwmw2/linux.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)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 1 Oct 2024 10:35:55 +0000 (12:35 +0200)
commit4c1b56671b68ffcbe6b78308bfdda6bcce6491ae
treedbaeffeb04c16ec9a24c4d790e6bb691685a30d4
parent23e19f2473c8762438baa1bcf3f71ee16dfcd535
net: stmmac: dwmac4: extend timeout for VLAN Tag register busy bit check

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>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c