mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
[SCSI] nsp32: use mdelay instead of large udelay constants
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
This commit is contained in:
parent
22e8099f4f
commit
b497ceb964
1 changed files with 1 additions and 1 deletions
|
|
@ -2899,7 +2899,7 @@ static void nsp32_do_bus_reset(nsp32_hw_data *data)
|
||||||
* reset SCSI bus
|
* reset SCSI bus
|
||||||
*/
|
*/
|
||||||
nsp32_write1(base, SCSI_BUS_CONTROL, BUSCTL_RST);
|
nsp32_write1(base, SCSI_BUS_CONTROL, BUSCTL_RST);
|
||||||
udelay(RESET_HOLD_TIME);
|
mdelay(RESET_HOLD_TIME / 1000);
|
||||||
nsp32_write1(base, SCSI_BUS_CONTROL, 0);
|
nsp32_write1(base, SCSI_BUS_CONTROL, 0);
|
||||||
for(i = 0; i < 5; i++) {
|
for(i = 0; i < 5; i++) {
|
||||||
intrdat = nsp32_read2(base, IRQ_STATUS); /* dummy read */
|
intrdat = nsp32_read2(base, IRQ_STATUS); /* dummy read */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue