]> git.baikalelectronics.ru Git - uboot.git/commit
net: mdio-uclass: name MDIO according to device-name property if preset
authorAlex Marginean <alexandru.marginean@nxp.com>
Thu, 25 Jul 2019 09:33:17 +0000 (12:33 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Sep 2019 16:37:19 +0000 (11:37 -0500)
commitc457271fa3dee0e2a05fb597c73390c9512c892b
treefbee5d15f302e2cdb71788bfec93a3acd5162058
parente8700115e332417001d069150fe3086aa91ffbe1
net: mdio-uclass: name MDIO according to device-name property if preset

Use the optional property device-name to name the MDIO bus.  This works
around limitations with using the DT node name on devices such as
Armada-8040, which integrates two cp100 cores, both featuring MDIOs at the
same relative offsets and with the same DT node names.
The concept was originally proposed by Marvell as a custom property called
mdio-name specific to Marvell driver.  This patch uses the more generic
property device-name and moves this into MDIO class code so other can use
it as well.

Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
net/mdio-uclass.c