Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kuninori Morimoto and committed by
Paul Mundt
c718aff2 7dc9c484

+1 -1
+1 -1
arch/sh/boards/mach-se/7724/setup.c
··· 533 533 while (t--) { 534 534 if (!ctrl_inw(EEPROM_STAT)) 535 535 return 1; 536 - cpu_relax(); 536 + udelay(1); 537 537 } 538 538 539 539 printk(KERN_ERR "ms7724se can not access to eeprom\n");