Rearrange the timeouts in the reset code a bit, some ATAPI devices

are picky about this.
This commit is contained in:
Søren Schmidt 2000-11-08 21:25:43 +00:00
parent 42ea2a63f7
commit 1716750c65
1 changed files with 2 additions and 2 deletions

View File

@ -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;