Skip to content

Commit

Permalink
sh: ms7724: Correct sh-eth EEPROM polling timeout.
Browse files Browse the repository at this point in the history
This converts the cpu_relax() to a udelay(1), which fixes up issues with
the EEPROM polling occasionally timing out.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Kuninori Morimoto authored and Paul Mundt committed Jan 18, 2010
1 parent 7dc9c48 commit c718aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/boards/mach-se/7724/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ static int __init sh_eth_is_eeprom_ready(void)
while (t--) {
if (!ctrl_inw(EEPROM_STAT))
return 1;
cpu_relax();
udelay(1);
}

printk(KERN_ERR "ms7724se can not access to eeprom\n");
Expand Down

0 comments on commit c718aff

Please sign in to comment.