From: Selvamani Rajagopal Adding loopback support for S2500 internal PHY to help running loopback test through ethtool. This instance requires only manipulating the loopback bit in the PHY. nothing else. The existing genphy interface implementation for loopback, does more than flipping the loopback bit. This is the reason to add a new API. Signed-off-by: Selvamani Rajagopal --- changes in v7 - No change changes in v6 - No change changes in v5 - No change changes in v4 - Moved the onsemi implementation to a new, genphy API to make it vendor agnostic. changes in v3 - Addd loopback functionality for onsemi's PHY driver - First patch --- drivers/net/phy/ncn26000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/ncn26000.c b/drivers/net/phy/ncn26000.c index c3a34b2c524d..afafa81dc22b 100644 --- a/drivers/net/phy/ncn26000.c +++ b/drivers/net/phy/ncn26000.c @@ -178,6 +178,7 @@ static struct phy_driver ncn26000_driver[] = { .config_aneg = ncn26000_config_aneg, .read_status = ncn26000_read_status, .handle_interrupt = ncn26000_handle_interrupt, + .set_loopback = genphy_loopback_fixed_speed, .set_plca_cfg = ncn26000_c45_plca_set_cfg, .get_plca_cfg = genphy_c45_plca_get_cfg, .get_plca_status = genphy_c45_plca_get_status, -- 2.43.0