Skip to content

Commit

Permalink
[PATCH] libata-dev: wait idle after reading the last data block
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Mar 29, 2006
1 parent 7160195 commit 52a3220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3710,7 +3710,7 @@ static int ata_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc,
(!(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;
}
}
Expand Down

0 comments on commit 52a3220

Please sign in to comment.