net: dsa: mv88e6xxx: Fix false positive lockdep splat
authorAndrew Lunn <andrew@lunn.ch>
Tue, 5 May 2015 23:09:55 +0000 (01:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:05:54 +0000 (16:05 -0400)
commit16fe24fc43e8d32b76030c79c151c7db691865f6
tree3e7f953e4f0efc03cbd5022e3317dc80cf66700b
parent31888234b736f455fa27c8e775df38a60241d562
net: dsa: mv88e6xxx: Fix false positive lockdep splat

DSA can have nested MDIO busses, where the Ethernet MDIO bus is used
to access an MDIO bus within the switch which has the PHYs connected
to it. This nesting causes lockdep to give false positives. Use
mutex_lock_nested() to avoid this.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c