]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: marvell: Fix 88e1510 downshift counter errata
authorRohan G Thomas <rohan.g.thomas@altera.com>
Sat, 6 Sep 2025 02:33:31 +0000 (10:33 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Sep 2025 02:30:51 +0000 (19:30 -0700)
commitdeb105f49879dd50d595f7f55207d6e74dec34e6
tree28c3a5449099ad428b9a8501ff2c7a4753fbaccc
parent214da63451bbdf00cbf2347d8f264d39ae938c7e
net: phy: marvell: Fix 88e1510 downshift counter errata

The 88e1510 PHY has an erratum where the phy downshift counter is not
cleared after phy being suspended(BMCR_PDOWN set) and then later
resumed(BMCR_PDOWN cleared). This can cause the gigabit link to
intermittently downshift to a lower speed.

Disabling and re-enabling the downshift feature clears the counter,
allowing the PHY to retry gigabit link negotiation up to the programmed
retry count times before downshifting. This behavior has been observed
on copper links.

Signed-off-by: Rohan G Thomas <rohan.g.thomas@altera.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@altera.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250906-marvell_fix-v2-1-f6efb286937f@altera.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/marvell.c