Skip to content
Snippets Groups Projects
Commit 879de127 authored by Lei Wen's avatar Lei Wen Committed by Albert ARIBAUD
Browse files

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: default avatarHeiko Schocher <hs@denx.de>
Acked-by: default avatarPrafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: default avatarLei Wen <leiwen@marvell.com>
parent 68432c27
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment