[SCSI] bfa: Replace large udelay() with mdelay()
authorBen Hutchings <ben@decadent.org.uk>
Sun, 9 Mar 2014 04:04:18 +0000 (04:04 +0000)
committerJames 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

index 7e256ef277b038d18e4c92ca8068ddc12fc7f1a6..315d6d6dcfc868996e0a4fc83a1065d78cac7d55 100644 (file)
@@ -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;
 }