1
0
Fork 0
alistair23-linux/drivers/net/ethernet/hisilicon
Yonglong Liu fa020a2889 net: hns3: fix a phy loopback fail issue
[ Upstream commit f04bbcbf1e ]

When phy driver does not implement the set_loopback interface,
phy loopback test will return -EOPNOTSUPP, and the loopback test
will fail. So when phy driver does not implement the set_loopback
interface, don't do phy loopback test.

Fixes: c9765a89d1 ("net: hns3: add phy selftest function")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-17 14:05:31 +01:00
..
hns net: hns: fix return value check in __lb_other_process() 2021-01-12 20:16:15 +01:00
hns3 net: hns3: fix a phy loopback fail issue 2021-01-17 14:05:31 +01:00
Kconfig net: hisilicon: Add support for HI13X1 to hip04_eth 2019-07-09 14:29:26 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hip04_eth.c net: hisilicon: Fix a BUG trigered by wrong bytes_compl 2019-12-31 16:41:22 +01:00
hisi_femac.c net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
hix5hd2_gmac.c net: hisilicon: Fix signedness bug in hix5hd2_dev_probe() 2019-09-27 10:01:36 +02:00
hns_mdio.c net: hisilicon: Fix usage of uninitialized variable in function mdio_sc_cfg_reg_write() 2019-10-02 14:20:22 -07:00