net: phy: realtek: add support for RTL8126A-integrated 5Gbps PHY
Subsystems (3)
Heiner Kallweit
maintainerPATCH 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
@@ -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
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.
Reported-by Joe Salmeri <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>
Joe, can you add a Tested-by:
Otherwise, this looks O.K.
Andrew
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.
Reported-by Joe Salmeri <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>--- drivers/net/phy/realtek.c | 10 ++++++++++ 1 file changed, 10 insertions(+)drivers/net/phy/realtek.c +3
-0@@ -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",
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.
Reported-by Joe Salmeri <[email protected]>Signed-off-by Heiner Kallweit <[email protected]>[...]
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