Revert the probe code change.

It helped those fake devices probe delays to go away, but as a side
effect it also made some not so conforming CD/DVD drives go away...
This commit is contained in:
sos 2003-02-25 08:22:01 +00:00
parent 6c8603b2c2
commit b34a19a530

View File

@ -724,14 +724,14 @@ ata_reset(struct ata_channel *ch)
ATA_OUTB(ch->r_io, ATA_DRIVE, ATA_D_IBM | ATA_MASTER);
DELAY(10);
ostat0 = ATA_INB(ch->r_io, ATA_STATUS);
if ((ostat0 & 0xf8) == 0x50 && ostat0 != 0xa5) {
if ((ostat0 & 0xf8) != 0xf8 && ostat0 != 0xa5) {
stat0 = ATA_S_BUSY;
mask |= 0x01;
}
ATA_OUTB(ch->r_io, ATA_DRIVE, ATA_D_IBM | ATA_SLAVE);
DELAY(10);
ostat1 = ATA_INB(ch->r_io, ATA_STATUS);
if ((ostat1 & 0xf8) == 0x50 && ostat1 != 0xa5) {
if ((ostat1 & 0xf8) != 0xf8 && ostat1 != 0xa5) {
stat1 = ATA_S_BUSY;
mask |= 0x02;
}