From f993f8ccfba7b666cf89d982746e3c9366c42589 Mon Sep 17 00:00:00 2001 From: Yufeng Mo Date: Mon, 2 Sep 2019 09:50:41 +0800 Subject: [PATCH] net: hns3: add set_loopback interface to realtek phy driver driver inclusion category: bugfix bugzilla: NA CVE: NA When using Ubuntu OS, the realtek phy driver is loaded by default instead of the generic PHY driver. However, the set_loopback interface is not added to the realtek phy driver. As a result, the phy selftest fails. This patch adds the set_loopback interface to the realtek phy driver so that the phy selftest can run properly. Signed-off-by: Yufeng Mo Reviewed-by: lipeng Signed-off-by: Yang Yingliang --- drivers/net/phy/realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 271e8adc39f1..b47c696d9b2c 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -291,6 +291,7 @@ static struct phy_driver realtek_drvs[] = { .resume = genphy_resume, .read_page = rtl821x_read_page, .write_page = rtl821x_write_page, + .set_loopback = genphy_loopback, }, { .phy_id = 0x001cc961, .name = "RTL8366RB Gigabit Ethernet", -- GitLab