net: hns: Use phy_driver to setup Phy loopback
authorLin Yun Sheng <linyunsheng@huawei.com>
Fri, 30 Jun 2017 09:44:16 +0000 (17:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jul 2017 09:01:15 +0000 (02:01 -0700)
commit67cd9a997f1bfb5dedf407ad540232912bd04b10
tree90d996f0a87aebeac2781f4fbccb804c9e18fed6
parentf0f9b4ed23381d97cde2ac64248198bc43608e6d
net: hns: Use phy_driver to setup Phy loopback

Use function set_loopback in phy_driver to setup phy loopback
when doing ethtool self test.

Signed-off-by: Lin Yun Sheng <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hnae.h
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c