From ccce94639e4afa5ef32f2171a91317a1c9aa988c Mon Sep 17 00:00:00 2001 From: tao89959 <1036524114@qq.com> Date: Mon, 23 Mar 2026 14:07:56 +0800 Subject: [PATCH] net: phy: motor yt8531 add soft reset func MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changelog: yt8531添加 soft reset 函数 Signed-off-by: maoxiaochuan --- drivers/net/phy/motorcomm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c index 9581c86f8..1232380d2 100644 --- a/drivers/net/phy/motorcomm.c +++ b/drivers/net/phy/motorcomm.c @@ -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),