From: Lei Wen <[leiwen@marvell.com]> Date: Wed, 13 Apr 2011 18:18:26 +0000 (+0530) Subject: mv_i2c: fix timeout value to be consistent with comments X-Git-Tag: v2011.06-rc1~131^2~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=879de1275abf66fbb08e601f12d6ac5a888255e1;p=oweals%2Fu-boot.git 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 Acked-by: Prafulla Wadaskar Signed-off-by: Lei Wen --- diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index 09756a4a06..562b950224 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);