Skip to content
Commit 6b3abc04 authored by Alex Marginean's avatar Alex Marginean Committed by Joe Hershberger
Browse files

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: default avatarAlex Marginean <alexm.osslist@gmail.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 259f7223
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment