Skip to content
Snippets Groups Projects
Commit 432286c4 authored by Kishon Vijay Abraham I's avatar Kishon Vijay Abraham I Committed by Tom Rini
Browse files

phy: cadence: Sierra: Create PHY only for "phy" or "link" sub-nodes


Cadence Sierra PHY driver registers PHY using devm_phy_create()
for all sub-nodes of Sierra device tree node. However Sierra device
tree node can have sub-nodes for the various clocks in addtion to the
PHY. Use devm_phy_create() only for nodes with name "phy" (or "link"
for old device tree) which represent the actual PHY.

Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: default avatarAswath Govindraju <a-govindraju@ti.com>
parent 67703eed
No related branches found
No related tags found
No related merge requests found
......@@ -523,6 +523,10 @@ static int cdns_sierra_phy_probe(struct udevice *dev)
sp->autoconf = dev_read_bool(dev, "cdns,autoconf");
ofnode_for_each_subnode(child, dev_ofnode(dev)) {
if (!(ofnode_name_eq(child, "phy") ||
ofnode_name_eq(child, "link")))
continue;
sp->phys[node].lnk_rst = devm_reset_bulk_get_by_node(dev,
child);
if (IS_ERR(sp->phys[node].lnk_rst)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment