]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: arc: rockchip: fix emac mdio node support
authorJohan Jonker <jbx6244@gmail.com>
Mon, 4 Nov 2024 13:01:39 +0000 (21:01 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 7 Nov 2024 12:39:42 +0000 (13:39 +0100)
commit0a1c7a7b0adbf595ce7f218609db53749e966573
treedf27ed843d8b808389cd136164347afb3071ebb1
parent71803c1dfa29e0d13b99e48fda11107cc8caebc7
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: 1dabb74971b3 ("ARM: dts: rockchip: restyle emac nodes")
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Tested-by: Andy Yan <andyshrk@163.com>
Link: https://lore.kernel.org/r/20220603163539.537-3-jbx6244@gmail.com
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/arc/emac_mdio.c