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-phy-v2.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
b/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
index 922ea03ea94a..2b681a09e046 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
@@ -2629,12 +2629,14 @@ static int xgbe_phy_link_status(struct xgbe_prv_data
*pdata, int *an_restart)
reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_STAT1);
reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_STAT1);
- if(phy_data->sfp_speed == XGBE_SFP_SPEED_10000) {
+ if(phy_data->sfp_speed == XGBE_SFP_SPEED_10000 ||(XGBE_MODE_KR ==
xgbe_phy_cur_mode(pdata))) {
if ((reg & MDIO_STAT1_LSTATUS) && !(reg & MDIO_STAT1_FAULT)) {
return 1;
} else {
+ mutex_lock(&pdata->an_mutex);
*an_restart = 1;
pdata->phy_if.phy_reset(pdata);
+ mutex_unlock(&pdata->an_mutex);
return 0;
}
} else {
--
2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13017):
https://lists.yoctoproject.org/g/linux-yocto/message/13017
Mute This Topic: https://lists.yoctoproject.org/mt/100956969/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-