projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dc9c48
)
sh: ms7724: Correct sh-eth EEPROM polling timeout.
author
Kuninori Morimoto
<
[email protected]
>
Thu, 24 Dec 2009 08:31:44 +0000
(08:31 +0000)
committer
Paul Mundt
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Paul Mundt <
[email protected]
>
arch/sh/boards/mach-se/7724/setup.c
patch
|
blob
|
history
diff --git
a/arch/sh/boards/mach-se/7724/setup.c
b/arch/sh/boards/mach-se/7724/setup.c
index 5d0f70b46c97435dab2e565498ec33cf98ba34f3..858ecb25d4699a5e42a4a2f05ed1e9e710170cb6 100644
(file)
--- 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");