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.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -234,7 +234,8 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, · 233 unmodified lines | ||
| 234 | 234 | const char *con_id); |
| 235 | 235 | struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, |
| 236 | 236 | 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); | |
| 238 | 239 | void devm_phy_put(struct device *dev, struct phy *phy); |
| 239 | 240 | struct phy *of_phy_get(struct device_node *np, const char *con_id); |
| 240 | 241 | 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 | ||
| 419 | 420 | return ERR_PTR(-ENOSYS); |
| 420 | 421 | } |
| 421 | 422 | |
| 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) | |
| 423 | 428 | { |
| 424 | 429 | } |
| 425 | 430 | |