net: phy: realtek: add support for EEE registers on integrated PHY's
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 15 Aug 2019 12:12:55 +0000 (14:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2019 18:48:30 +0000 (11:48 -0700)
commit5b3f13950c91721ccabd001015ef09999c2306bb
tree6e6a6374b911968d5a5941c131ef2ce1be759b92
parent2441ba4806a184f82609aae07921d19c9377d040
net: phy: realtek: add support for EEE registers on integrated PHY's

EEE-related registers on newer integrated PHY's have the standard
layout, but are accessible not via MMD but via vendor-specific
registers. Emulating the standard MMD registers allows to use the
generic functions for EEE control.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c