[PATCH 01/16] net: phy: realtek: add phy for RTL8168 internal phy
Sascha Hauer
s.hauer at pengutronix.de
Tue Mar 26 03:07:31 PDT 2024
The integrated PHY's of later RTL8168 network chips report the generic
PHYID 0x001cc800 (Realtek OUI, model and revision number both set to
zero) and therefore currently the genphy driver is used.
To be able to use the paged version of e.g. phy_write() we need a
PHY driver with the read_page and write_page callbacks implemented.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/net/phy/realtek.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index c23947b7cb..8ab3d63091 100644
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -189,6 +189,13 @@ static struct phy_driver realtek_drvs[] = {
.config_init = &rtl8211f_config_init,
.read_page = rtl821x_read_page,
.write_page = rtl821x_write_page,
+ }, {
+ PHY_ID_MATCH_EXACT(0x001cc800),
+ .drv.name = "Generic FE-GE Realtek PHY",
+ .features = PHY_GBIT_FEATURES,
+ .config_init = &rtl8211f_config_init,
+ .read_page = rtl821x_read_page,
+ .write_page = rtl821x_write_page,
}, {
PHY_ID_MATCH_EXACT(0x001cc961),
.drv.name = "RTL8366RB Gigabit Ethernet",
--
2.39.2
More information about the barebox
mailing list