projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0284556
)
[SCSI] bfa: Replace large udelay() with mdelay()
author
Ben Hutchings
<ben@decadent.org.uk>
Sun, 9 Mar 2014 04:04:18 +0000
(
04:04
+0000)
committer
James Bottomley
<JBottomley@Parallels.com>
Wed, 19 Mar 2014 22:04:47 +0000
(15:04 -0700)
udelay() does not work on some architectures for values above
2000, in particular on ARM:
ERROR: "__bad_udelay" [drivers/scsi/bfa/bfa.ko] undefined!
Reported-by: Vagrant Cascadian <vagrant@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bfa/bfa_ioc.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/bfa/bfa_ioc.c
b/drivers/scsi/bfa/bfa_ioc.c
index
7e256ef
..
315d6d6
100644
(file)
--- a/
drivers/scsi/bfa/bfa_ioc.c
+++ b/
drivers/scsi/bfa/bfa_ioc.c
@@
-7006,7
+7006,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;
}