Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300017
b: refs/heads/master
c: c95eeae
h: refs/heads/master
i:
  300015: 39bae66
v: v3
  • Loading branch information
Wolfram Sang committed Apr 25, 2012
1 parent ff5e949 commit eca0d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 096407136769ec10690abe1baba092abcb763662
refs/heads/master: c95eeae9e39314273bcda057f27100603d333518
3 changes: 1 addition & 2 deletions trunk/drivers/i2c/busses/i2c-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ static int mxs_i2c_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg,
return -EINVAL;

init_completion(&i2c->cmd_complete);
i2c->cmd_err = 0;

flags = stop ? MXS_I2C_CTRL0_POST_SEND_STOP : 0;

Expand Down Expand Up @@ -299,8 +300,6 @@ static irqreturn_t mxs_i2c_isr(int this_irq, void *dev_id)
MXS_I2C_CTRL1_SLAVE_STOP_IRQ | MXS_I2C_CTRL1_SLAVE_IRQ))
/* MXS_I2C_CTRL1_OVERSIZE_XFER_TERM_IRQ is only for slaves */
i2c->cmd_err = -EIO;
else
i2c->cmd_err = 0;

is_last_cmd = (readl(i2c->regs + MXS_I2C_QUEUESTAT) &
MXS_I2C_QUEUESTAT_WRITE_QUEUE_CNT_MASK) == 0;
Expand Down

0 comments on commit eca0d36

Please sign in to comment.