net: dsa: mv88e6xxx: assert SMI lock
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 30 Oct 2015 22:56:45 +0000 (18:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Nov 2015 20:54:13 +0000 (15:54 -0500)
commit3996a4ffb01f57f82abe6c7e60ac9048dd0c31df
tree4f398fa8f64ac892b64da589035cbe9000ae4112
parentac00881f922106b45e934dc6988fa9c1ec542d71
net: dsa: mv88e6xxx: assert SMI lock

It's easy to forget to lock the smi_mutex before calling the low-level
_mv88e6xxx_reg_{read,write}, so add a assert_smi_lock function in them.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c