Commit c718aff2 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt

sh: ms7724: Correct sh-eth EEPROM polling timeout.

This converts the cpu_relax() to a udelay(1), which fixes up issues with
the EEPROM polling occasionally timing out.
Signed-off-by: default avatarKuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 7dc9c484
...@@ -533,7 +533,7 @@ static int __init sh_eth_is_eeprom_ready(void) ...@@ -533,7 +533,7 @@ static int __init sh_eth_is_eeprom_ready(void)
while (t--) { while (t--) {
if (!ctrl_inw(EEPROM_STAT)) if (!ctrl_inw(EEPROM_STAT))
return 1; return 1;
cpu_relax(); udelay(1);
} }
printk(KERN_ERR "ms7724se can not access to eeprom\n"); printk(KERN_ERR "ms7724se can not access to eeprom\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment