Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347048
b: refs/heads/master
c: d60ece5
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi authored and Wolfram Sang committed Nov 14, 2012
1 parent 74bbf7b commit ff4927f
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 49839dc93970789cea46f5171cd7f6ec11af64c7
refs/heads/master: d60ece5f010043422c5fbc3609714c4420c7c9bf
4 changes: 3 additions & 1 deletion trunk/drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ static int omap_i2c_xfer_msg(struct i2c_adapter *adap,
dev->buf = msg->buf;
dev->buf_len = msg->len;

/* make sure writes to dev->buf_len are ordered */
barrier();

omap_i2c_write_reg(dev, OMAP_I2C_CNT_REG, dev->buf_len);

/* Clear the FIFO Buffers */
Expand Down Expand Up @@ -581,7 +584,6 @@ static int omap_i2c_xfer_msg(struct i2c_adapter *adap,
*/
timeout = wait_for_completion_timeout(&dev->cmd_complete,
OMAP_I2C_TIMEOUT);
dev->buf_len = 0;
if (timeout == 0) {
dev_err(dev->dev, "controller timed out\n");
omap_i2c_init(dev);
Expand Down

0 comments on commit ff4927f

Please sign in to comment.