From: Borislav Petkov Date: Tue, 6 Jan 2009 16:20:57 +0000 (+0100) Subject: ide-cd: start DMA before sending the actual packet command X-Git-Tag: v2.6.29-rc1~231^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1e91477aa335fc1c97eb15649ed1a1714cc758ec;p=linux-2.6-omap-h63xx.git ide-cd: start DMA before sending the actual packet command 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 Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 1c1ba43c263..2cb301dccd2 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -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; }