This Patch Set add set_loopback in phy_driver and use it to setup loopback when doing ethtool phy self_test.
Lin Yun Sheng (2): net: phy: Add phy loopback support in net phy framework net: hns: Use phy_driver to setup Phy loopback drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 64 ++++-------------------- drivers/net/phy/marvell.c | 1 + drivers/net/phy/phy_device.c | 23 +++++++++ include/linux/phy.h | 2 + 4 files changed, 36 insertions(+), 54 deletions(-) -- 1.9.1