Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173848
b: refs/heads/master
c: 78839bd
h: refs/heads/master
v: v3
  • Loading branch information
Shinya Kuribayashi authored and Ben Dooks committed Dec 9, 2009
1 parent bc9a45e commit afb8d48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 91b52caec040064b4df540b72ad7f18a22fd0508
refs/heads/master: 78839bd0f22c3b6e7273568e042bf4d637cfedb3
7 changes: 3 additions & 4 deletions trunk/drivers/i2c/busses/i2c-designware.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,8 @@ i2c_dw_xfer_msg(struct i2c_adapter *adap)
}

static void
i2c_dw_read(struct i2c_adapter *adap)
i2c_dw_read(struct dw_i2c_dev *dev)
{
struct dw_i2c_dev *dev = i2c_get_adapdata(adap);
struct i2c_msg *msgs = dev->msgs;
int num = dev->msgs_num;
u32 addr = msgs[dev->msg_read_idx].addr;
Expand Down Expand Up @@ -416,7 +415,7 @@ i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
if (likely(!dev->cmd_err)) {
/* read rx fifo, and disable the adapter */
do {
i2c_dw_read(adap);
i2c_dw_read(dev);
} while (dev->status & STATUS_READ_IN_PROGRESS);
writel(0, dev->base + DW_IC_ENABLE);
ret = num;
Expand Down Expand Up @@ -450,7 +449,7 @@ static void dw_i2c_pump_msg(unsigned long data)
struct dw_i2c_dev *dev = (struct dw_i2c_dev *) data;
u32 intr_mask;

i2c_dw_read(&dev->adapter);
i2c_dw_read(dev);
i2c_dw_xfer_msg(&dev->adapter);

intr_mask = DW_IC_INTR_STOP_DET | DW_IC_INTR_TX_ABRT;
Expand Down

0 comments on commit afb8d48

Please sign in to comment.