mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 15:11:33 +00:00
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 <hs@denx.de> Acked-by: Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by: Lei Wen <leiwen@marvell.com>
This commit is contained in:
parent
68432c2743
commit
879de1275a
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ static void i2c_reset(void)
|
||||||
static int i2c_isr_set_cleared(unsigned long set_mask,
|
static int i2c_isr_set_cleared(unsigned long set_mask,
|
||||||
unsigned long cleared_mask)
|
unsigned long cleared_mask)
|
||||||
{
|
{
|
||||||
int timeout = 10000;
|
int timeout = 1000;
|
||||||
|
|
||||||
while (((ISR & set_mask) != set_mask) || ((ISR & cleared_mask) != 0)) {
|
while (((ISR & set_mask) != set_mask) || ((ISR & cleared_mask) != 0)) {
|
||||||
udelay(10);
|
udelay(10);
|
||||||
|
|
Loading…
Add table
Reference in a new issue