• Heiner Kallweit's avatar
    r8169: use phy_resume/phy_suspend · 242cd9b5
    Heiner Kallweit authored
    Use phy_resume() / phy_suspend() instead of open coding this functionality.
    The chip version specific differences are handled by the respective PHY
    drivers.
    
    The call to r8168_phy_power_down() in r8168_pll_power_down() can be
    removed because phylib takes care now. The relevant scenarios are:
    - rtl8169_close(): phy_disconnect() powers down PHY
    - suspend: mdio_bus_phy_suspend() takes care
    - runtime-suspend: WoL is active, don't suspend PHY
    - rtl_shutdown(): no need to power down PHY
    Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    242cd9b5
r8169.c 191 KB