net: mdio: Fix lockdep falls positive splat
authorAndrew Lunn <andrew@lunn.ch>
Mon, 11 Apr 2016 19:40:05 +0000 (21:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Apr 2016 01:15:48 +0000 (21:15 -0400)
commit9a6f2b0113c8fce815db7c9d23754bdea4b428a0
tree05e5b4205fb6aebdcf105fa8866cfeceeec93ff9
parent7c3da7d0d4f3506ef70d9cf148a22400477854d0
net: mdio: Fix lockdep falls positive splat

MDIO devices can be stacked upon each other. The current code supports
two levels, which until recently has been enough for a DSA mdio bus on
top of another bus. Now we have hardware which has an MDIO mux in the
middle.

Define an MDIO MUTEX class with three levels.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mux.c
drivers/net/phy/mdio_bus.c
include/linux/mdio.h