From: Gabor Juhos Date: Sun, 11 Mar 2012 16:49:33 +0000 (+0000) Subject: generic: ar8216: add lockep assertion to ar8216_rmw X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dad19ac8b2034e31b1926f1a25a680f6ff8ba52d;p=openwrt%2Fstaging%2Frobimarko.git generic: ar8216: add lockep assertion to ar8216_rmw SVN-Revision: 30883 --- diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 1521ea317a..c199ac178c 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;