net: phy: broadcom: fix RGMII delays for BCM54210E

bcm54210e_config() configures the RGMII delays and then calls
bcm5461_config(). But the latter will do a PHY soft reset and thus
resets the delay settings again. Call bcm5461_config() first to fix it.

Fixes: cba79a1b2e ("net: phy: broadcom: add support for BCM54210E")
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
Michael Walle
2025-11-27 16:25:27 +01:00
committed by Jerome Forissier
parent 85a7e45c33
commit 7c1b99bd60

View File

@@ -176,11 +176,11 @@ static int bcm54210e_config(struct phy_device *phydev)
{
int ret;
ret = bcm54xx_config_clock_delay(phydev);
ret = bcm5461_config(phydev);
if (ret < 0)
return ret;
ret = bcm5461_config(phydev);
ret = bcm54xx_config_clock_delay(phydev);
if (ret < 0)
return ret;