Skip to content

Commit 181eeb0

Browse files
hkallweitDa Xue
authored andcommitted
net: phy: realtek: add support for RTL8126A-integrated 5Gbps PHY
A user reported that first consumer mainboards show up with a RTL8126A 5Gbps MAC/PHY. This adds support for the integrated PHY, which is also available stand-alone. From a PHY driver perspective it's treated the same as the 2.5Gbps PHY's, we just have to support the new PHY ID. Reported-by: Joe Salmeri <jmscdba@gmail.com> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Joe Salmeri <jmscdba@gmail.com> Link: https://lore.kernel.org/r/0c8e67ea-6505-43d1-bd51-94e7ecd6e222@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent af3a40f commit 181eeb0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/net/phy/realtek.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,16 @@ static struct phy_driver realtek_drvs[] = {
10491049
.resume = rtlgen_resume,
10501050
.read_page = rtl821x_read_page,
10511051
.write_page = rtl821x_write_page,
1052+
}, {
1053+
PHY_ID_MATCH_EXACT(0x001cc862),
1054+
.name = "RTL8251B 5Gbps PHY",
1055+
.get_features = rtl822x_get_features,
1056+
.config_aneg = rtl822x_config_aneg,
1057+
.read_status = rtl822x_read_status,
1058+
.suspend = genphy_suspend,
1059+
.resume = rtlgen_resume,
1060+
.read_page = rtl821x_read_page,
1061+
.write_page = rtl821x_write_page,
10521062
}, {
10531063
PHY_ID_MATCH_EXACT(0x001cc961),
10541064
.name = "RTL8366RB Gigabit Ethernet",

0 commit comments

Comments
 (0)