From 1716750c65175c1837e07e072c4264b90fde56a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Wed, 8 Nov 2000 21:25:43 +0000 Subject: [PATCH] Rearrange the timeouts in the reset code a bit, some ATAPI devices are picky about this. --- sys/dev/ata/ata-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index d398af2d215..28586d0789c 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -1254,9 +1254,9 @@ ata_reset(struct ata_softc *scp, int *mask) DELAY(1); inb(scp->ioaddr + ATA_STATUS); outb(scp->altioaddr, ATA_A_IDS | ATA_A_RESET); - DELAY(100000); + DELAY(10000); outb(scp->altioaddr, ATA_A_IDS); - DELAY(10000); + DELAY(100000); inb(scp->ioaddr + ATA_ERROR); DELAY(3000); scp->devices = 0;