Skip to content

Commit 6508488

Browse files
Yufeng Mogregkh
authored andcommitted
net: hns3: disable phy loopback setting in hclge_mac_start_phy
[ Upstream commit 472497d ] 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 <moyufeng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5aa957e commit 6508488

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎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)