From 7c3e076bdfc22dba29e7691afa9f30b1d20ccae9 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 11 Mar 2012 16:49:33 +0000 Subject: generic: ar8216: add lockep assertion to ar8216_rmw git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30883 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/files/drivers/net/phy/ar8216.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/linux') diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 1521ea317..c199ac178 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "ar8216.h" /* size of the vlan table */ @@ -122,6 +123,8 @@ ar8216_rmw(struct ar8216_priv *priv, int reg, u32 mask, u32 val) { u32 v; + lockdep_assert_held(&priv->reg_mutex); + v = priv->read(priv, reg); v &= ~mask; v |= val; -- cgit v1.2.3