]> 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)
commit4f8f19659a7dc13477ef5a24a7f856541ec1d02d
tree3e7f953e4f0efc03cbd5022e3317dc80cf66700b
parent8e7b4965ecbf86f805c70edc736e8f470ed582be
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