net: dsa: OF-ware slave_mii_bus
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Mon, 23 May 2022 01:32:34 +0000 (22:32 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2022 11:27:53 +0000 (12:27 +0100)
commitfe7324b932222574a0721b80e72c6c5fe57960d1
tree6e7a2ce62f34b721402696e9c0992fc566588059
parent32c53420d2a0c2c3a691edb895d90d9d028ca3e0
net: dsa: OF-ware slave_mii_bus

If found, register the DSA internally allocated slave_mii_bus with an OF
"mdio" child object. It can save some drivers from creating their
custom internal MDIO bus.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c