Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52a32205 authored by Albert Lee's avatar Albert Lee Committed by Jeff Garzik
Browse files

[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: default avatarAlbert Lee <albertcc@tw.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 71601958
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
			}
			}
		}
		}