From: Kuninori Morimoto Date: Thu, 24 Dec 2009 08:31:44 +0000 (+0000) Subject: sh: ms7724: Correct sh-eth EEPROM polling timeout. X-Git-Tag: upstream/snapshot3+hdmi~15804^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c718aff2e673a4f42de2a8b9f43bbfd700ce9544;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Paul Mundt --- diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index 5d0f70b..858ecb2 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) while (t--) { if (!ctrl_inw(EEPROM_STAT)) return 1; - cpu_relax(); + udelay(1); } printk(KERN_ERR "ms7724se can not access to eeprom\n");