generic: ar8216: add lockep assertion to ar8216_rmw
SVN-Revision: 30883
This commit is contained in:
parent
6c51c47962
commit
dad19ac8b2
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <linux/phy.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/lockdep.h>
|
||||
#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;
|
||||
|
|
Loading…
Reference in a new issue