projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2168746
)
driver/net: cosa driver uses udelay incorrectly
author
Li, Zhen-Hua
<zhen-hual@hp.com>
Tue, 15 Apr 2014 01:53:11 +0000
(09:53 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 15 Apr 2014 04:08:22 +0000
(
00:08
-0400)
In cosa driver, udelay with more than 20000 may cause __bad_udelay.
Use msleep for instead.
Signed-off-by: Li, Zhen-Hua <zhen-hual@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/cosa.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wan/cosa.c
b/drivers/net/wan/cosa.c
index 84734a8050925054b69c981fc9be2ebb0341335c..83c39e2858bf70a1673cf2c6d9813a92f25ce4d3 100644
(file)
--- a/
drivers/net/wan/cosa.c
+++ b/
drivers/net/wan/cosa.c
@@
-1521,11
+1521,7
@@
static int cosa_reset_and_read_id(struct cosa_data *cosa, char *idstring)
cosa_putstatus(cosa, 0);
cosa_getdata8(cosa);
cosa_putstatus(cosa, SR_RST);
-#ifdef MODULE
msleep(500);
-#else
- udelay(5*100000);
-#endif
/* Disable all IRQs from the card */
cosa_putstatus(cosa, 0);