]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: Fix loopback test failed at copper ports
authorYonglong Liu <liuyonglong@huawei.com>
Fri, 31 May 2019 08:59:50 +0000 (16:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Jun 2019 20:55:54 +0000 (13:55 -0700)
commit729f8115842f911d8bd99a08a3e4682c0cf3dae8
tree2330daf645fb8f91f0607d8ecbe9b767f3e76538
parentbcb9f9f02c055c6ca0c11e6f078c03c02f3591ee
net: hns: Fix loopback test failed at copper ports

When doing a loopback test at copper ports, the serdes loopback
and the phy loopback will fail, because of the adjust link had
not finished, and phy not ready.

Adds sleep between adjust link and test process to fix it.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c