sh: ms7724: Correct sh-eth EEPROM polling timeout.
authorKuninori Morimoto <morimoto.kuninori@renesas.com>
Thu, 24 Dec 2009 08:31:44 +0000 (08:31 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 18 Jan 2010 11:47:15 +0000 (20:47 +0900)
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>
arch/sh/boards/mach-se/7724/setup.c

index 5d0f70b46c97435dab2e565498ec33cf98ba34f3..858ecb25d4699a5e42a4a2f05ed1e9e710170cb6 100644 (file)
@@ -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");