1
0
Fork 0
alistair23-linux/drivers/net/ethernet/hisilicon/hns3
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
..
hns3pf net: hns3: fix a phy loopback fail issue 2021-01-17 14:05:31 +01:00
hns3vf net: hns3: Clear the CMDQ registers before unmapping BAR region 2020-11-01 12:01:04 +01:00
Makefile net: hns3: Add debugfs framework registration 2018-11-23 17:28:59 -08:00
hclge_mbx.h net: hns3: fix the number of queues actually used by ARQ 2021-01-17 14:05:31 +01:00
hnae3.c net: hns3: add client node validity judgment 2019-09-06 15:20:34 +02:00
hnae3.h net: hns3: fix error handling for desc filling 2020-07-29 10:18:33 +02:00
hns3_dcbnl.c net: hns3: fix some coding style issues 2019-06-09 13:20:59 -07:00
hns3_debugfs.c net: hns3: modify some logs format 2019-09-11 09:08:45 +01:00
hns3_enet.c net: hns3: Fix for geneve tx checksum bug 2020-09-17 13:47:46 +02:00
hns3_enet.h net: hns3: Use the correct style for SPDX License Identifier 2019-11-05 17:45:38 -08:00
hns3_ethtool.c net: hns3: fix use-after-free when doing self test 2020-07-16 08:16:39 +02:00