summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2018-11-01 17:01:36 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-02 07:32:06 +0100
commita2566675bda879de505b04206f5eeaa85f574446 (patch)
tree6e9a46521b6c2506b1ccf42ac2224d4dcd44dd32 /commands
parentc54304e5d4bb53ea89872ce25b1fb7b7d98d4d2b (diff)
downloadbarebox-a2566675bda879de505b04206f5eeaa85f574446.tar.gz
barebox-a2566675bda879de505b04206f5eeaa85f574446.tar.xz
net: designware: look for a child device node for MDIO bus
The Designware driver registers a local MDIO bus for each MAC device, but without setting a device node pointer for the MDIO bus device. In this case, mdiobus_register() will use the MDIO bus's parent device node (if any) as the MDIO device node. If the MAC device node has a child node compatible with "snps,dwmac-mdio", let us use that as the MDIO bus device node. Otherwise, leave the MDIO bus device node pointer set to NULL and carry on as before. The upshot is that PHY device nodes can now be placed in an intermediate node for the MDIO bus instead of having to place them directly in the Designware MAC device node. (Tested on a Terasic DE0-Nano-SoC with a suitably modified device tree.) Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions