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
234234 const char *con_id);
235235 struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np,
236236 int index);
237−void phy_put(struct phy *phy);
237+void of_phy_put(struct phy *phy);
238+void phy_put(struct device *dev, struct phy *phy);
238239 void devm_phy_put(struct device *dev, struct phy *phy);
239240 struct phy *of_phy_get(struct device_node *np, const char *con_id);
240241 struct 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
419420 return ERR_PTR(-ENOSYS);
420421 }
421422
422−static inline void phy_put(struct phy *phy)
423+static inline void of_phy_put(struct phy *phy)
424+{
425+}
426+
427+static inline void phy_put(struct device *dev, struct phy *phy)
423428 {
424429 }
425430