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

Commit 61abcb7b authored by Timur Tabi's avatar Timur Tabi Committed by David S. Miller
Browse files

netdev/phy: skip disabled mdio-mux nodes



The mdio-mux driver scans all child mdio nodes, without regard to whether
the node is actually used.  Some device trees include all possible
mdio-mux nodes and rely on the boot loader to disable those that are not
present, based on some run-time configuration.  Those nodes need to be
skipped.

Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3296193d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ int mdio_mux_init(struct device *dev,
	pb->mii_bus = parent_bus;

	ret_val = -ENODEV;
	for_each_child_of_node(dev->of_node, child_bus_node) {
	for_each_available_child_of_node(dev->of_node, child_bus_node) {
		u32 v;

		r = of_property_read_u32(child_bus_node, "reg", &v);