]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: disable phy loopback setting in hclge_mac_start_phy
authorYufeng Mo <moyufeng@huawei.com>
Fri, 30 Apr 2021 09:06:22 +0000 (17:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Apr 2021 21:49:33 +0000 (14:49 -0700)
commit4bbc6dc4b80b443d61cdf9eaaf59bf8e66faa592
treea42f82f9dea02a2f2ae77865b1037e4bbb3daee7
parent937dea6932b2f4965e4db255388aa19ddb6fa6cc
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: d6a397b7fa3e ("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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c