diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-02-03 18:07:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-03 20:37:08 +0300 |
commit | f66ebd14a71bd50a46801a7cabd779a1a324bf76 (patch) | |
tree | 23345c34c5bfdbcb76bc531b2c861d43d858a432 /drivers/net/phy/realtek.c | |
parent | 682a789516d323d883204c2954d53e92e269aa86 (diff) | |
download | linux-f66ebd14a71bd50a46801a7cabd779a1a324bf76.tar.xz |
net: phy: realtek: add generic Realtek PHY driver
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.
So basically make a copy of the genphy driver, just with the
read_page and write_page callbacks being set.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/realtek.c')
-rw-r--r-- | drivers/net/phy/realtek.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 75543f9370f3..d8c4b9ae0fa4 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -273,6 +273,15 @@ static struct phy_driver realtek_drvs[] = { .read_page = rtl821x_read_page, .write_page = rtl821x_write_page, }, { + PHY_ID_MATCH_EXACT(0x001cc800), + .name = "Generic Realtek PHY", + .features = PHY_GBIT_FEATURES, + .config_init = genphy_config_init, + .suspend = genphy_suspend, + .resume = genphy_resume, + .read_page = rtl821x_read_page, + .write_page = rtl821x_write_page, + }, { PHY_ID_MATCH_EXACT(0x001cc961), .name = "RTL8366RB Gigabit Ethernet", .features = PHY_GBIT_FEATURES, |