linux/drivers/net/ethernet/arc
Johan Jonker 0012be71c5 net: arc: rockchip: fix emac mdio node support
[ Upstream commit 0a1c7a7b0a ]

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: 1dabb74971 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-11-14 13:19:32 +01:00
..
emac.h net: arc: Make arc_emac_remove() return void 2023-05-19 13:33:28 +01:00
emac_arc.c net: arc: Make arc_emac_remove() return void 2023-05-19 13:33:28 +01:00
emac_main.c net: arc: fix the device for dma_map_single/dma_unmap_single 2024-11-14 13:19:32 +01:00
emac_mdio.c net: arc: rockchip: fix emac mdio node support 2024-11-14 13:19:32 +01:00
emac_rockchip.c net: arc: Make arc_emac_remove() return void 2023-05-19 13:33:28 +01:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-10-14 16:50:14 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00