From 1831e285db8bf47aa1a91f18370ce6ff7543405b Mon Sep 17 00:00:00 2001 From: sos Date: Wed, 8 Nov 2000 21:25:43 +0000 Subject: 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(-) (limited to 'sys/dev') diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index d398af2..28586d0 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; -- cgit v1.1