net: phy: add phy_speed_down and phy_speed_up
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 12 Jul 2018 19:32:53 +0000 (21:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 20:34:47 +0000 (13:34 -0700)
commit2b9672ddb6f347467d7b33b86c5dfc4d5c0501a8
tree6bd5081c4a13583ec4b0a1df2d493238878a5e71
parent762995807059dec20c926617415e0cdd52fd44e9
net: phy: add phy_speed_down and phy_speed_up

Some network drivers include functionality to speed down the PHY when
suspending and just waiting for a WoL packet because this saves energy.
This functionality is quite generic, therefore let's factor it out to
phylib.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
include/linux/phy.h