[U-Boot] [PATCH V8 2/6] mv_i2c: fix timeout value to be consistent with comments
Lei Wen
leiwen at marvell.com
Tue Apr 5 10:00:56 CEST 2011
The original 10000 value would be 100ms, which is not
the comments said.
Signed-off-by: Lei Wen <leiwen at marvell.com>
---
V2:
V3:
V4:
V5:
V6:
V7:
NO CHANGE
V8:
seperate timeout fix patch out
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 09756a4..562b950 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);
--
1.7.0.4
More information about the U-Boot
mailing list