]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] nsp32: use mdelay instead of large udelay constants
authorArnd Bergmann <arnd@arndb.de>
Thu, 14 Mar 2013 14:21:36 +0000 (15:21 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 19 Jun 2013 15:53:35 +0000 (17:53 +0200)
ARM cannot handle udelay for more than 2 miliseconds, so we
should use mdelay instead for those.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: GOTO Masanori <gotom@debian.or.jp>
Cc: YOKOTA Hiroshi <yokota@netlab.is.tsukuba.ac.jp>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: linux-scsi@vger.kernel.org
drivers/scsi/nsp32.c

index 1e3879dcbdcc70d2d3b8e02d6aa341458a044843..0665f9cfdb02d7fb5c4fc415f969ee309c37690e 100644 (file)
@@ -2899,7 +2899,7 @@ static void nsp32_do_bus_reset(nsp32_hw_data *data)
         * reset SCSI bus
         */
        nsp32_write1(base, SCSI_BUS_CONTROL, BUSCTL_RST);
-       udelay(RESET_HOLD_TIME);
+       mdelay(RESET_HOLD_TIME / 1000);
        nsp32_write1(base, SCSI_BUS_CONTROL, 0);
        for(i = 0; i < 5; i++) {
                intrdat = nsp32_read2(base, IRQ_STATUS); /* dummy read */