]> git.sur5r.net Git - u-boot/commitdiff
mv_i2c: fix timeout value to be consistent with comments
authorLei Wen <[leiwen@marvell.com]>
Wed, 13 Apr 2011 18:18:26 +0000 (23:48 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Wed, 27 Apr 2011 17:38:07 +0000 (19:38 +0200)
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>
drivers/i2c/mv_i2c.c

index 09756a4a06a1a443b288018fed1495ae502919ca..562b9502248a961cacbfed315b8fa489ea30780f 100644 (file)
@@ -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);