History

phy: core: Add consumer device link support

In order to enforce suspend/resume ordering, this commit creates link between phy consumers and phy devices. This link avoids to suspend phy before phy consumers.

Alexandre Torgue committed 7 years ago

Commit 987351e1 parent 24dbe0a4 files · +53 −9Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/phy/phy.h+7−2
@@ -234,7 +234,8 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, · 233 unmodified lines
234 const char *con_id);234 const char *con_id);
235struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np,235struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np,
236 int index);236 int index);
237void phy_put(struct phy *phy);237void of_phy_put(struct phy *phy);
238void phy_put(struct device *dev, struct phy *phy);
238void devm_phy_put(struct device *dev, struct phy *phy);239void devm_phy_put(struct device *dev, struct phy *phy);
239struct phy *of_phy_get(struct device_node *np, const char *con_id);240struct phy *of_phy_get(struct device_node *np, const char *con_id);
240struct phy *of_phy_simple_xlate(struct device *dev,241struct phy *of_phy_simple_xlate(struct device *dev,
@@ -419,7 +420,11 @@ static inline struct phy *devm_of_phy_get_by_index(struct device *dev, · 178 unmodified lines
419 return ERR_PTR(-ENOSYS);420 return ERR_PTR(-ENOSYS);
420}421}
421 422
422static inline void phy_put(struct phy *phy)423static inline void of_phy_put(struct phy *phy)
424{
425}
426
427static inline void phy_put(struct device *dev, struct phy *phy)
423{428{
424}429}
425 430