]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita23a87f6953044fe6ea7ca139401f04f4ccb18d9
tree05e5b4205fb6aebdcf105fa8866cfeceeec93ff9
parentd0dd4c2e1f8e20077411973e214a7c6807bba803
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