Skip to content

Commit 472497d

Browse files
Yufeng Modavem330
authored andcommitted
net: hns3: disable phy loopback setting in hclge_mac_start_phy
If selftest and reset are performed at the same time, the phy loopback setting may be still in enable state after the reset, and device cannot link up. So fix this issue by disabling phy loopback before phy_start(). Fixes: 256727d ("net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC") Signed-off-by: Yufeng Mo <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8c9200e commit 472497d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ void hclge_mac_start_phy(struct hclge_dev *hdev)
255255
if (!phydev)
256256
return;
257257

258+
phy_loopback(phydev, false);
259+
258260
phy_start(phydev);
259261
}
260262

0 commit comments

Comments
 (0)