This series adds general EEE support to be used with ethtool. In addition it implements EEE for chip versions from RTL8168g. The first patch leaves the default chip settings and the second enables EEE per default. This allows us to revert patch 2 w/o removing EEE support completely if we should face issues with EEE on particular chip versions.
Unfortunately Realtek decided not to use the standard EEE MMD registers but to use proprietary registers. Therefore we can't use phylib functions like phy_ethtool_set_eee and have to reimplement the functionality. Tested on a system with RTL8168g (chip version 40). Heiner Kallweit (2): r8169: add general EEE support for chip versions from RTL8168g r8169: enable EEE per default on chip versions from RTL8168g drivers/net/ethernet/realtek/r8169.c | 216 +++++++++++++++++++++++++-- 1 file changed, 206 insertions(+), 10 deletions(-) -- 2.20.1