]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit161e88f66d0fa07fe8086721990acb1dfd17b8b2
tree3e7f953e4f0efc03cbd5022e3317dc80cf66700b
parent46d59dd51a37abecbbc2150fc23642ddaa9cf310
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