Dont expect interrupt from ATAPI_RESET, it doesn't deliver one.

This commit is contained in:
Søren Schmidt 2004-07-23 17:01:47 +00:00
parent 5e60838b5d
commit 426fc84503

View File

@ -108,6 +108,17 @@ ata_generic_transaction(struct ata_request *request)
break;
}
/* device reset doesn't interrupt */
if (request->u.ata.command == ATA_ATAPI_RESET) {
DELAY(10);
request->status = ATA_IDX_INB(ch, ATA_STATUS);
if (request->status & ATA_S_ERROR) {
request->error = ATA_IDX_INB(ch, ATA_ERROR);
//request->result = EIO;
}
break;
}
/* if write command output the data */
if (write) {
if (ata_wait(request->device,