[net-next v2 2/3] net: motorcomm: phy: set drive strength in 8531s RGMII case

From: Minda Chen

Date: Wed Apr 22 2026 - 04:35:56 EST


Set RXD and RX CLK pin drive strength while in 8531s RGMII
case.

Signed-off-by: Minda Chen <minda.chen@xxxxxxxxxxxxxxxx>
---
drivers/net/phy/motorcomm.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
index c66804537aa2..ebc24f51e626 100644
--- a/drivers/net/phy/motorcomm.c
+++ b/drivers/net/phy/motorcomm.c
@@ -1698,6 +1698,11 @@ static int yt8521_config_init(struct phy_device *phydev)
if (ret < 0)
goto err_restore_page;
}
+
+ if (phydev->drv->phy_id == PHY_ID_YT8531S &&
+ phy_interface_is_rgmii(phydev))
+ ret = yt8531_set_ds(phydev);
+
err_restore_page:
return phy_restore_page(phydev, old_page, ret);
}
--
2.17.1