Commit 0a1c7a7b authored by Johan Jonker's avatar Johan Jonker Committed by Paolo Abeni
Browse files

net: arc: rockchip: fix emac mdio node support



The binding emac_rockchip.txt is converted to YAML.
Changed against the original binding is an added MDIO subnode.
This make the driver failed to find the PHY, and given the 'mdio
has invalid PHY address' it is probably looking in the wrong node.
Fix emac_mdio.c so that it can handle both old and new
device trees.

Fixes: 1dabb749 ("ARM: dts: rockchip: restyle emac nodes")
Signed-off-by: default avatarJohan Jonker <jbx6244@gmail.com>
Tested-by: default avatarAndy Yan <andyshrk@163.com>
Link: https://lore.kernel.org/r/20220603163539.537-3-jbx6244@gmail.com


Signed-off-by: default avatarAndy Yan <andy.yan@rock-chips.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 71803c1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment