mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[SCSI] bfa: Replace large udelay() with mdelay()
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 <[email protected]> Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
1 parent
0284556009
commit
b367dcaa51
1 file changed
+1
-1
@@ -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(10000);
|
||||
mdelay(10);
|
||||
}
|
||||
return BFA_STATUS_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user