net: phy: motor yt8531 add soft reset func

Changelog: yt8531添加 soft reset 函数
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
tao89959
2026-08-24 14:17:15 +08:00
committed by maoxiaochuan
parent 6d348e033d
commit ccce94639e
+7
View File
@@ -1594,6 +1594,12 @@ static int yt8521_soft_reset(struct phy_device *phydev)
return yt8521_modify_utp_fiber_bmcr(phydev, 0, BMCR_RESET);
}
static int yt8531_soft_reset(struct phy_device *phydev)
{
mdelay(500);
return 0;
}
/**
* yt8521_suspend() - suspend the hardware
* @phydev: a pointer to a &struct phy_device
@@ -2963,6 +2969,7 @@ static struct phy_driver motorcomm_phy_drvs[] = {
.get_wol = ytphy_get_wol,
.set_wol = yt8531_set_wol,
.link_change_notify = yt8531_link_change_notify,
.soft_reset = yt8531_soft_reset,
},
{
PHY_ID_MATCH_EXACT(PHY_ID_YT8531S),