aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlbert Lee <albertcc@tw.ibm.com>2006-03-25 05:18:15 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-29 17:22:36 -0500
commit52a3220599647ba429fcbca2388ec35b850fa72f (patch)
tree7c2c775c130d852c94029807cb4a061e7d96dcbd /drivers
parent71601958f73b952281f2b02e16d1f11c99ee0a8b (diff)
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 59cb12993f95..5fdc3143ed15 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -3710,7 +3710,7 @@ fsm_start:
3710 (!(qc->tf.flags & ATA_TFLAG_WRITE))) { 3710 (!(qc->tf.flags & ATA_TFLAG_WRITE))) {
3711 /* all data read */ 3711 /* all data read */
3712 ata_altstatus(ap); 3712 ata_altstatus(ap);
3713 status = ata_chk_status(ap); 3713 status = ata_wait_idle(ap);
3714 goto fsm_start; 3714 goto fsm_start;
3715 } 3715 }
3716 } 3716 }