aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/phy.txt
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2014-07-14 06:25:02 -0400
committerKishon Vijay Abraham I <kishon@ti.com>2014-07-22 03:16:11 -0400
commitf0ed817638b59aa927f1f7e9564dd8796b18dc4f (patch)
tree8d33a1dc9b780a2413565d80a19b649b056fb4cd /Documentation/phy.txt
parent2a4c37016ca96e413cd352985d3a0db8cfb7716c (diff)
phy: core: Let node ptr of PHY point to PHY and not of PHY provider
In case of multi-phy PHY providers, each PHY should be modeled as a sub node of the PHY provider. Then each PHY will have a different node pointer (node pointer of sub node) than that of PHY provider. Added this provision in the PHY core. Also fixed all drivers to use the updated API. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Acked-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'Documentation/phy.txt')
-rw-r--r--Documentation/phy.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/phy.txt b/Documentation/phy.txt
index ebff6ee52441..c6594af94d25 100644
--- a/Documentation/phy.txt
+++ b/Documentation/phy.txt
@@ -53,10 +53,12 @@ unregister the PHY.
53The PHY driver should create the PHY in order for other peripheral controllers 53The PHY driver should create the PHY in order for other peripheral controllers
54to make use of it. The PHY framework provides 2 APIs to create the PHY. 54to make use of it. The PHY framework provides 2 APIs to create the PHY.
55 55
56struct phy *phy_create(struct device *dev, const struct phy_ops *ops, 56struct phy *phy_create(struct device *dev, struct device_node *node,
57 struct phy_init_data *init_data); 57 const struct phy_ops *ops,
58struct phy *devm_phy_create(struct device *dev, const struct phy_ops *ops, 58 struct phy_init_data *init_data);
59 struct phy_init_data *init_data); 59struct phy *devm_phy_create(struct device *dev, struct device_node *node,
60 const struct phy_ops *ops,
61 struct phy_init_data *init_data);
60 62
61The PHY drivers can use one of the above 2 APIs to create the PHY by passing 63The PHY drivers can use one of the above 2 APIs to create the PHY by passing
62the device pointer, phy ops and init_data. 64the device pointer, phy ops and init_data.