summaryrefslogtreecommitdiff
path: root/drivers/scsi/libata-core.c
diff options
context:
space:
mode:
authorAlbert Lee <albertcc@tw.ibm.com>2006-03-25 18:18:15 +0800
committerJeff Garzik <jeff@garzik.org>2006-03-29 17:22:36 -0500
commit52a3220599647ba429fcbca2388ec35b850fa72f (patch)
tree7c2c775c130d852c94029807cb4a061e7d96dcbd /drivers/scsi/libata-core.c
parent71601958f73b952281f2b02e16d1f11c99ee0a8b (diff)
downloadlwn-52a3220599647ba429fcbca2388ec35b850fa72f.tar.gz
lwn-52a3220599647ba429fcbca2388ec35b850fa72f.zip
[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/scsi/libata-core.c')
-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:
(!(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;
}
}