Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44340
b: refs/heads/master
c: 6ea2303
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina authored and Jean Delvare committed Dec 10, 2006
1 parent 60fe795 commit 7053902
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ad04d5c3879dcf79ba0fa1826eab991f7b7a2de8
refs/heads/master: 6ea23039cb1cc7c379eb5fba0ed2c53291e9bea7
2 changes: 1 addition & 1 deletion trunk/drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ int i2c_transfer(struct i2c_adapter * adap, struct i2c_msg *msgs, int num)
}
#endif

mutex_lock(&adap->bus_lock);
mutex_lock_nested(&adap->bus_lock, adap->level);
ret = adap->algo->master_xfer(adap,msgs,num);
mutex_unlock(&adap->bus_lock);

Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ struct i2c_adapter {
int (*client_unregister)(struct i2c_client *);

/* data fields that are valid for all devices */
u8 level; /* nesting level for lockdep */
struct mutex bus_lock;
struct mutex clist_lock;

Expand Down

0 comments on commit 7053902

Please sign in to comment.