projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68432c2
)
mv_i2c: fix timeout value to be consistent with comments
author
Lei Wen
<[leiwen@marvell.com]>
Wed, 13 Apr 2011 18:18:26 +0000
(23:48 +0530)
committer
Albert 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
patch
|
blob
|
history
diff --git
a/drivers/i2c/mv_i2c.c
b/drivers/i2c/mv_i2c.c
index 09756a4a06a1a443b288018fed1495ae502919ca..562b9502248a961cacbfed315b8fa489ea30780f 100644
(file)
--- 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 = 1000
0
;
+ int timeout = 1000;
while (((ISR & set_mask) != set_mask) || ((ISR & cleared_mask) != 0)) {
udelay(10);