[PATCH 74/75] [SCSI] nsp32: use mdelay instead of large udelay constants
Luis Henriques
luis.henriques at canonical.com
Wed Aug 14 10:37:03 UTC 2013
3.5.7.19 -stable review patch. If anyone has any objections, please let me know.
------------------
From: Arnd Bergmann <arnd at arndb.de>
commit b497ceb964a80ebada3b9b3cea4261409039e25a upstream.
ARM cannot handle udelay for more than 2 miliseconds, so we
should use mdelay instead for those.
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Acked-by: GOTO Masanori <gotom at debian.or.jp>
Cc: YOKOTA Hiroshi <yokota at netlab.is.tsukuba.ac.jp>
Cc: "James E.J. Bottomley" <JBottomley at parallels.com>
Cc: linux-scsi at vger.kernel.org
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
drivers/scsi/nsp32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
index 62b6168..e705ed3 100644
--- a/drivers/scsi/nsp32.c
+++ b/drivers/scsi/nsp32.c
@@ -2926,7 +2926,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 */
--
1.8.3.2
More information about the kernel-team
mailing list