From: Albert Lee Date: Sat, 25 Mar 2006 10:18:15 +0000 (+0800) Subject: [PATCH] libata-dev: wait idle after reading the last data block X-Git-Tag: v2.6.18-rc1~1079^2~98^2~13^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52a3220599647ba429fcbca2388ec35b850fa72f;p=profile%2Fivi%2Fkernel-x86-ivi.git [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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 59cb129..5fdc314 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; } }