Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Timur Tabi <timur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Timur Tabi and committed by
David S. Miller
61abcb7b 3296193d

+1 -1
+1 -1
drivers/net/phy/mdio-mux.c
··· 132 132 pb->mii_bus = parent_bus; 133 133 134 134 ret_val = -ENODEV; 135 - for_each_child_of_node(dev->of_node, child_bus_node) { 135 + for_each_available_child_of_node(dev->of_node, child_bus_node) { 136 136 u32 v; 137 137 138 138 r = of_property_read_u32(child_bus_node, "reg", &v);