Skip to content

Commit

Permalink
i2c-sun4i: update twi restart timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pannan committed Dec 1, 2011
1 parent 90f0686 commit 5eb7ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-sun4i.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ static int aw_twi_start(void *base_addr)

static int aw_twi_restart(void *base_addr)
{
unsigned int timeout = 0x20;
unsigned int timeout = 0xff;
aw_twi_set_start(base_addr);
aw_twi_clear_irq_flag(base_addr);
while((1 == aw_twi_get_start(base_addr))&&(--timeout));
Expand Down

0 comments on commit 5eb7ff5

Please sign in to comment.