From: Sudheesh Mavila <[email protected]>
Signed-off-by: Sudheesh Mavila <[email protected]>
Signed-off-by: Yongxin Liu <[email protected]>
---
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
index ca7372369b3e..ba515ea7a012 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
@@ -1374,7 +1374,8 @@ static void xgbe_phy_status(struct xgbe_prv_data *pdata)
&an_restart);
if (an_restart) {
xgbe_phy_config_aneg(pdata);
- goto adjust_link;
+ if(XGBE_MODE_KR != pdata->phy_if.phy_impl.cur_mode(pdata))
+ goto adjust_link;
}
if (pdata->phy.link) {
@@ -1394,7 +1395,7 @@ static void xgbe_phy_status(struct xgbe_prv_data *pdata)
if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) {
xgbe_check_link_timeout(pdata);
- if (link_aneg)
+ if ((link_aneg) && (XGBE_MODE_KR !=
pdata->phy_if.phy_impl.cur_mode(pdata)))
return;
}
--
2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13018):
https://lists.yoctoproject.org/g/linux-yocto/message/13018
Mute This Topic: https://lists.yoctoproject.org/mt/100956971/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-