Unverified Commit f43c74c8 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10318 【OLK 5.10】net: hns3: add set_loopback interface to realtek phy driver

Merge Pull Request from: @chen-hao418 
 
    driver inclusion
    category: bugfix
    bugzilla: https://gitee.com/openeuler/kernel/issues/IAFOMC
    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. 
 
Link:https://gitee.com/openeuler/kernel/pulls/10318

 

Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parents 21210c9b d787726d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -695,6 +695,7 @@ static struct phy_driver realtek_drvs[] = {
		.resume		= rtl821x_resume,
		.read_page	= rtl821x_read_page,
		.write_page	= rtl821x_write_page,
		.set_loopback   = genphy_loopback,
	}, {
		.name		= "Generic FE-GE Realtek PHY",
		.match_phy_device = rtlgen_match_phy_device,