Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300018
b: refs/heads/master
c: 1e4f0b8
h: refs/heads/master
v: v3
  • Loading branch information
Wolfram Sang committed Apr 27, 2012
1 parent eca0d36 commit 87343c0
Show file tree
Hide file tree
Showing 2 changed files with 4 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: c95eeae9e39314273bcda057f27100603d333518
refs/heads/master: 1e4f0b82577e59f23484c99056c96465e202fdd5
5 changes: 3 additions & 2 deletions trunk/drivers/i2c/busses/i2c-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ static int mxs_i2c_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg,

if (i2c->cmd_err == -ENXIO)
mxs_i2c_reset(i2c);
else
writel(MXS_I2C_QUEUECTRL_QUEUE_RUN,
i2c->regs + MXS_I2C_QUEUECTRL_CLR);

dev_dbg(i2c->dev, "Done with err=%d\n", i2c->cmd_err);

Expand Down Expand Up @@ -383,8 +386,6 @@ static int __devexit mxs_i2c_remove(struct platform_device *pdev)
if (ret)
return -EBUSY;

writel(MXS_I2C_QUEUECTRL_QUEUE_RUN,
i2c->regs + MXS_I2C_QUEUECTRL_CLR);
writel(MXS_I2C_CTRL0_SFTRST, i2c->regs + MXS_I2C_CTRL0_SET);

platform_set_drvdata(pdev, NULL);
Expand Down

0 comments on commit 87343c0

Please sign in to comment.