Skip to contentSkip to conversation

net: phy: realtek: add support for RTL8126A-integrated 5Gbps PHY

PATCH Applied Heiner Kallweit 4 participants 4 messages Jan 31, 2024 – Feb 3, 2024

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/phy/realtek.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/net/phy/realtek.c +10 -0
index 894172a3e..132784321 100644
@@ -1047,6 +1047,16 @@ static struct phy_driver realtek_drvs[] = {
 		.resume         = rtlgen_resume,
 		.read_page      = rtl821x_read_page,
 		.write_page     = rtl821x_write_page,
+	}, {
+		PHY_ID_MATCH_EXACT(0x001cc862),
+		.name           = "RTL8251B 5Gbps PHY",
+		.get_features   = rtl822x_get_features,
+		.config_aneg    = rtl822x_config_aneg,
+		.read_status    = rtl822x_read_status,
+		.suspend        = genphy_suspend,
+		.resume         = rtlgen_resume,
+		.read_page      = rtl821x_read_page,
+		.write_page     = rtl821x_write_page,
 	}, {
 		PHY_ID_MATCH_EXACT(0x001cc961),
 		.name		= "RTL8366RB Gigabit Ethernet",
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Heiner Kallweit

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.

Joe, can you add a Tested-by:

Otherwise, this looks O.K.

Andrew

Tested-by on v1 1/1
#2 lore raw
In reply to Heiner Kallweit
Quoted 22 lines · Heiner Kallweit

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.

---
  drivers/net/phy/realtek.c | 10 ++++++++++
  1 file changed, 10 insertions(+)
drivers/net/phy/realtek.c +3 -0
index 894172a3e..132784321 100644
@@ -1047,6 +1047,16 @@ static struct phy_driver realtek_drvs[] = {
  		.resume         = rtlgen_resume,
  		.read_page      = rtl821x_read_page,
  		.write_page     = rtl821x_write_page,
+	}, {
+		PHY_ID_MATCH_EXACT(0x001cc862),
+		.name           = "RTL8251B 5Gbps PHY",

drivers/net/phy/realtek.c static struct phy_driver realtek_drvs[] = { · line 1062

Quoted 10 lines
drivers/net/phy/realtek.c +7 -0
+		.get_features   = rtl822x_get_features,
+		.config_aneg    = rtl822x_config_aneg,
+		.read_status    = rtl822x_read_status,
+		.suspend        = genphy_suspend,
+		.resume         = rtlgen_resume,
+		.read_page      = rtl821x_read_page,
+		.write_page     = rtl821x_write_page,
  	}, {
  		PHY_ID_MATCH_EXACT(0x001cc961),
  		.name		= "RTL8366RB Gigabit Ethernet",
#3 lore raw
In reply to Heiner Kallweit
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Wed, 31 Jan 2024 21:24:29 +0100 you wrote:

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.

[...]

Here is the summary with links:
- [net-next] net: phy: realtek: add support for RTL8126A-integrated 5Gbps PHY

    https://git.kernel.org/netdev/net-next/c/5befa3728b85

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html