提交 52a32205 编写于 作者: A Albert Lee 提交者: Jeff Garzik

[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: NAlbert Lee <albertcc@tw.ibm.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 71601958
...@@ -3710,7 +3710,7 @@ static int ata_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc, ...@@ -3710,7 +3710,7 @@ static int ata_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc,
(!(qc->tf.flags & ATA_TFLAG_WRITE))) { (!(qc->tf.flags & ATA_TFLAG_WRITE))) {
/* all data read */ /* all data read */
ata_altstatus(ap); ata_altstatus(ap);
status = ata_chk_status(ap); status = ata_wait_idle(ap);
goto fsm_start; goto fsm_start;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册