Commit Graph
2 Commits
Author SHA1 Message Date
Florian Fainelli 00e798c7d1 drivers: net: Remove device_node checks with of_mdiobus_register()
A number of drivers have the following pattern:

if (np)
	of_mdiobus_register()
else
	mdiobus_register()

which the implementation of of_mdiobus_register() now takes care of.
Remove that pattern in drivers that strictly adhere to it.

Signed-off-by: Florian Fainelli <[email protected]>
Reviewed-by: Grygorii Strashko <[email protected]>
Reviewed-by: Fugang Duan <[email protected]>
Reviewed-by: Antoine Tenart <[email protected]>
Reviewed-by: Jose Abreu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2018-05-16 14:20:36 -04:00
Alexandre Belloni 542671fe4d net: phy: mscc-miim: Add MDIO driver
Add a driver for the Microsemi MII Management controller (MIIM) found on
Microsemi SoCs.
On Ocelot, there are two controllers, one is connected to the internal
PHYs, the other one can communicate with external PHYs.

Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2018-05-15 16:41:15 -04:00