]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Make mdio bus optional
authorAndrew Lunn <andrew@lunn.ch>
Sat, 4 Jun 2016 19:17:04 +0000 (21:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jun 2016 21:29:54 +0000 (14:29 -0700)
commit5d475c8e50086cb6cfe83ac0fba5ec803137d9e1
tree22a130b4708421378138307d97c5ccfd3fe294ff
parent536ba79269c285b9ab224617976b7c7961351c3e
net: dsa: Make mdio bus optional

The switch may want to instantiate its own MDIO bus. Only do it
centrally if the switch has not already created one, and the read op
is implemented.

Signed-off-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/dsa.c