projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3731436
)
bna: Replace large udelay() with mdelay()
author
Ben Hutchings
<ben@decadent.org.uk>
Sun, 9 Mar 2014 04:03:22 +0000
(
04:03
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 10 Mar 2014 19:56:59 +0000
(15:56 -0400)
udelay() does not work on some architectures for values above
2000, in particular on ARM:
ERROR: "__bad_udelay" [drivers/net/ethernet/brocade/bna/bna.ko] undefined!
Reported-by: Vagrant Cascadian <vagrant@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bfa_ioc.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/brocade/bna/bfa_ioc.c
b/drivers/net/ethernet/brocade/bna/bfa_ioc.c
index
1803c39
..
354ae97
100644
(file)
--- a/
drivers/net/ethernet/brocade/bna/bfa_ioc.c
+++ b/
drivers/net/ethernet/brocade/bna/bfa_ioc.c
@@
-1704,7
+1704,7
@@
bfa_flash_sem_get(void __iomem *bar)
while (!bfa_raw_sem_get(bar)) {
if (--n <= 0)
return BFA_STATUS_BADFLASH;
-
udelay(1000
0);
+
mdelay(1
0);
}
return BFA_STATUS_OK;
}