]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide-cd: start DMA before sending the actual packet command
authorBorislav Petkov <petkovbb@gmail.com>
Tue, 6 Jan 2009 16:20:57 +0000 (17:20 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 6 Jan 2009 16:20:57 +0000 (17:20 +0100)
as it is done for all other IDE ATAPI devices.

There should be no functionality change resulting from this patch.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-cd.c

index 1c1ba43c263c155599415c835c76b669bcd7bb62..2cb301dccd218a279481fd6a9e4eccd047d1dfb9 100644 (file)
@@ -593,13 +593,13 @@ static ide_startstop_t cdrom_transfer_packet_command(ide_drive_t *drive)
        if (cmd_len < ATAPI_MIN_CDB_BYTES)
                cmd_len = ATAPI_MIN_CDB_BYTES;
 
-       /* send the command to the device */
-       hwif->tp_ops->output_data(drive, NULL, rq->cmd, cmd_len);
-
        /* start the DMA if need be */
        if (drive->dma)
                hwif->dma_ops->dma_start(drive);
 
+       /* send the command to the device */
+       hwif->tp_ops->output_data(drive, NULL, rq->cmd, cmd_len);
+
        return ide_started;
 }