diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-12-13 10:20:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-17 14:42:44 -0500 |
commit | 481b5d938b4a60f052d7e15965a8417125e0d39f (patch) | |
tree | 02131fdc36661ebb2928db66c895060a7908c956 /include/linux/phy.h | |
parent | 0898b448b374772093f14a33055e996d37c9bff9 (diff) | |
download | linux-481b5d938b4a60f052d7e15965a8417125e0d39f.tar.gz linux-481b5d938b4a60f052d7e15965a8417125e0d39f.tar.bz2 linux-481b5d938b4a60f052d7e15965a8417125e0d39f.zip |
net: phy: provide phy_resume/phy_suspend helpers
This adds helper functions to resume and suspend a given phy_device
by calling the corresponding driver callbacks if available.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 90a666e0884b..73384ff3b5e5 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -548,6 +548,8 @@ struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id, struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45); int phy_device_register(struct phy_device *phy); int phy_init_hw(struct phy_device *phydev); +int phy_suspend(struct phy_device *phydev); +int phy_resume(struct phy_device *phydev); struct phy_device * phy_attach(struct net_device *dev, const char *bus_id, phy_interface_t interface); struct phy_device *phy_find_first(struct mii_bus *bus); |