Skip to contentSkip to conversation

net: phy: realtek: support paged operations on RTL8201CP

PATCH Applied Heiner Kallweit 2 participants 2 messages Nov 8, 2020 – Nov 11, 2020

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: realtek: support paged operations on RTL8201CP

The RTL8401-internal PHY identifies as RTL8201CP, and the init sequence in r8169, copied from vendor driver r8168, uses paged operations. Therefore set the same paged operation callbacks as for the other Realtek PHY's.

Fixes cdafdc29ef75 ("r8169: sync support for RTL8401 with vendor driver")
---
 drivers/net/phy/realtek.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/phy/realtek.c +2 -0
index 2ba0d73bf..5844cf2d3 100644
@@ -551,6 +551,8 @@ static struct phy_driver realtek_drvs[] = {
 	{
 		PHY_ID_MATCH_EXACT(0x00008201),
 		.name           = "RTL8201CP Ethernet",
+		.read_page	= rtl821x_read_page,
+		.write_page	= rtl821x_write_page,
 	}, {
 		PHY_ID_MATCH_EXACT(0x001cc816),
 		.name		= "RTL8201F Fast Ethernet",
Signature · 1 line
2.29.2
maintainer Applied
#1 lore raw
Quoted 7 lines · On Sun, 8 Nov 2020 22:44:02 +0100 Heiner Kallweit wrote:

The RTL8401-internal PHY identifies as RTL8201CP, and the init sequence in r8169, copied from vendor driver r8168, uses paged operations. Therefore set the same paged operation callbacks as for the other Realtek PHY's.

Fixes cdafdc29ef75 ("r8169: sync support for RTL8401 with vendor driver")

Applied, thanks!