summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-12-13 04:20:27 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-17 14:42:44 -0500
commit481b5d938b4a60f052d7e15965a8417125e0d39f (patch)
tree02131fdc36661ebb2928db66c895060a7908c956 /include/linux/phy.h
parent0898b448b374772093f14a33055e996d37c9bff9 (diff)
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.h2
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,
548struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45); 548struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
549int phy_device_register(struct phy_device *phy); 549int phy_device_register(struct phy_device *phy);
550int phy_init_hw(struct phy_device *phydev); 550int phy_init_hw(struct phy_device *phydev);
551int phy_suspend(struct phy_device *phydev);
552int phy_resume(struct phy_device *phydev);
551struct phy_device * phy_attach(struct net_device *dev, 553struct phy_device * phy_attach(struct net_device *dev,
552 const char *bus_id, phy_interface_t interface); 554 const char *bus_id, phy_interface_t interface);
553struct phy_device *phy_find_first(struct mii_bus *bus); 555struct phy_device *phy_find_first(struct mii_bus *bus);