提交 f993f8cc 编写于 作者: Y Yufeng Mo 提交者: Xie XiuQi

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: NYufeng Mo <moyufeng@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 834faefb
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册