ipq40xx: edma: convert to of_mdio_find_bus()
authorRobert Marko <robert.marko@sartura.hr>
Wed, 7 Oct 2020 15:27:31 +0000 (17:27 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 23 Dec 2020 15:36:08 +0000 (16:36 +0100)
commit03bae3cafd92d21dd58686c702b2c4d5d69c946c
treefd1b4083d422a08c87524391f19e6f9fb3d16d3c
parent4cdc8d20fa6f0acdac532ad972cd664a5927e9f3
ipq40xx: edma: convert to of_mdio_find_bus()

With the reworked MDIO driver, EDMA will fail to get the MII BUS as it
used the MII BUS stored inside the MDIO structure private data.

This obviously does not work with the modernized driver, so lets switch
to using a purpose build of_mdio_find_bus() which will return the MII
BUS and only requires the MDIO node to be passed.
This is easy as we already have the node parsed.

Also, since we now require OF_MDIO add that as dependency.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma_axi.c
target/linux/ipq40xx/patches-5.4/710-net-add-qualcomm-essedma-ethernet-driver.patch