Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5c7d1f6 authored by Baruch Siach's avatar Baruch Siach Committed by Rob Herring
Browse files

of/mdio: fix fixed link bus name



Since 9e6c643b (phy/fixed: use an unique MDIO bus name) the name of the fixed
PHY bus is "fixed-0". Teach of_phy_connect_fixed_link() the new name.

Tested on a P1020RDB PowerPC system.

Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
Acked-by: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent d022bbc7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -182,7 +182,7 @@ struct phy_device *of_phy_connect_fixed_link(struct net_device *dev,
	if (!phy_id || sz < sizeof(*phy_id))
	if (!phy_id || sz < sizeof(*phy_id))
		return NULL;
		return NULL;


	sprintf(bus_id, PHY_ID_FMT, "0", be32_to_cpu(phy_id[0]));
	sprintf(bus_id, PHY_ID_FMT, "fixed-0", be32_to_cpu(phy_id[0]));


	phy = phy_connect(dev, bus_id, hndlr, 0, iface);
	phy = phy_connect(dev, bus_id, hndlr, 0, iface);
	return IS_ERR(phy) ? NULL : phy;
	return IS_ERR(phy) ? NULL : phy;