diff options
| author | Lei Wen <[leiwen@marvell.com]> | 2011-04-13 23:48:26 +0530 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-04-27 19:38:07 +0200 | 
| commit | 879de1275abf66fbb08e601f12d6ac5a888255e1 (patch) | |
| tree | 1a38954d474228debaa1f567ee54fe8779f761c8 | |
| parent | 68432c27438360aa3bc27c0c73bf3c12a8c6ffa7 (diff) | |
| download | olio-uboot-2014.01-879de1275abf66fbb08e601f12d6ac5a888255e1.tar.xz olio-uboot-2014.01-879de1275abf66fbb08e601f12d6ac5a888255e1.zip | |
mv_i2c: fix timeout value to be consistent with comments
The original 10000 value would be 100ms, which is not
the comments said.
Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
| -rw-r--r-- | drivers/i2c/mv_i2c.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index 09756a4a0..562b95022 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -114,7 +114,7 @@ static void i2c_reset(void)  static int i2c_isr_set_cleared(unsigned long set_mask,  			       unsigned long cleared_mask)  { -	int timeout = 10000; +	int timeout = 1000;  	while (((ISR & set_mask) != set_mask) || ((ISR & cleared_mask) != 0)) {  		udelay(10); |