]> 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)
commit68cdce806aad2239d07a94e9b5820502608b1d33
tree22a130b4708421378138307d97c5ccfd3fe294ff
parentdb477bc0c413ca40ed37a8488d14b7cab3d049ba
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