Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220982
b: refs/heads/master
c: f868fc3
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij authored and Ben Dooks committed Oct 25, 2010
1 parent af4b63c commit 5ed6371
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 5680bc6ec71f303956f5aa999a3c13e13466c561
refs/heads/master: f868fc355ad852b476950c2fe4f5bae7480e8f04
8 changes: 6 additions & 2 deletions trunk/drivers/i2c/busses/i2c-nomadik.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
/* maximum threshold value */
#define MAX_I2C_FIFO_THRESHOLD 15

/* per-transfer delay, required for the hardware to stabilize */
#define I2C_DELAY 150

enum i2c_status {
I2C_NOP,
I2C_ON_GOING,
Expand All @@ -118,7 +121,7 @@ enum i2c_operation {
};

/* controller response timeout in ms */
#define I2C_TIMEOUT_MS 500
#define I2C_TIMEOUT_MS 2000

/**
* struct i2c_nmk_client - client specific data
Expand Down Expand Up @@ -267,6 +270,7 @@ static int init_hw(struct nmk_i2c_dev *dev)

clk_disable(dev->clk);

udelay(I2C_DELAY);
return 0;
}

Expand Down Expand Up @@ -599,7 +603,7 @@ static int nmk_i2c_xfer(struct i2c_adapter *i2c_adap,
clk_disable(dev->clk);
return status;
}
mdelay(1);
udelay(I2C_DELAY);
}
clk_disable(dev->clk);

Expand Down

0 comments on commit 5ed6371

Please sign in to comment.