diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-12-24 03:31:44 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-18 06:47:15 -0500 |
commit | c718aff2e673a4f42de2a8b9f43bbfd700ce9544 (patch) | |
tree | be5af25699bef51ddbd9f0870e68e0948c3bb7d1 /arch | |
parent | 7dc9c484a71525794ca05cf7a47f283f1b54cd12 (diff) |
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: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index 5d0f70b46c97..858ecb25d469 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -533,7 +533,7 @@ static int __init sh_eth_is_eeprom_ready(void) | |||
533 | while (t--) { | 533 | while (t--) { |
534 | if (!ctrl_inw(EEPROM_STAT)) | 534 | if (!ctrl_inw(EEPROM_STAT)) |
535 | return 1; | 535 | return 1; |
536 | cpu_relax(); | 536 | udelay(1); |
537 | } | 537 | } |
538 | 538 | ||
539 | printk(KERN_ERR "ms7724se can not access to eeprom\n"); | 539 | printk(KERN_ERR "ms7724se can not access to eeprom\n"); |