r8169: use phy_resume/phy_suspend
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Jul 2018 20:51:33 +0000 (22:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 00:46:32 +0000 (09:46 +0900)
commit242cd9b5866aa2caf9ff770283b85ddb35d52f90
treee071d4658caf5ab8822e4f5a9e5e304224f024c4
parentf1e911d5d0dfde489be38d9702a75964dfb42b28
r8169: use phy_resume/phy_suspend

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: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c