[PATCH] libata-dev: wait idle after reading the last data block

Some CD-ROM drives are slow to clear DRQ, after the last data block
is read by PIO. Use ata_wait_idle() after reading the last data block.

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
Albert Lee 2006-03-25 18:18:15 +08:00 committed by Jeff Garzik
parent 71601958f7
commit 52a3220599
1 changed files with 1 additions and 1 deletions

View File

@ -3710,7 +3710,7 @@ fsm_start:
(!(qc->tf.flags & ATA_TFLAG_WRITE))) {
/* all data read */
ata_altstatus(ap);
status = ata_chk_status(ap);
status = ata_wait_idle(ap);
goto fsm_start;
}
}