1 From 5befa3728b855e9f75b29bb0069a1ca7f5bab2f7 Mon Sep 17 00:00:00 2001
2 From: Heiner Kallweit <hkallweit1@gmail.com>
3 Date: Wed, 31 Jan 2024 21:24:29 +0100
4 Subject: [PATCH] net: phy: realtek: add support for RTL8126A-integrated 5Gbps
7 A user reported that first consumer mainboards show up with a RTL8126A
8 5Gbps MAC/PHY. This adds support for the integrated PHY, which is also
9 available stand-alone. From a PHY driver perspective it's treated the
10 same as the 2.5Gbps PHY's, we just have to support the new PHY ID.
12 Reported-by: Joe Salmeri <jmscdba@gmail.com>
13 Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
14 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
15 Tested-by: Joe Salmeri <jmscdba@gmail.com>
16 Link: https://lore.kernel.org/r/0c8e67ea-6505-43d1-bd51-94e7ecd6e222@gmail.com
17 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
19 drivers/net/phy/realtek.c | 10 ++++++++++
20 1 file changed, 10 insertions(+)
22 --- a/drivers/net/phy/realtek.c
23 +++ b/drivers/net/phy/realtek.c
24 @@ -1050,6 +1050,16 @@ static struct phy_driver realtek_drvs[]
25 .read_page = rtl821x_read_page,
26 .write_page = rtl821x_write_page,
28 + PHY_ID_MATCH_EXACT(0x001cc862),
29 + .name = "RTL8251B 5Gbps PHY",
30 + .get_features = rtl822x_get_features,
31 + .config_aneg = rtl822x_config_aneg,
32 + .read_status = rtl822x_read_status,
33 + .suspend = genphy_suspend,
34 + .resume = rtlgen_resume,
35 + .read_page = rtl821x_read_page,
36 + .write_page = rtl821x_write_page,
38 PHY_ID_MATCH_EXACT(0x001cc961),
39 .name = "RTL8366RB Gigabit Ethernet",
40 .config_init = &rtl8366rb_config_init,