Skip to content

Commit

Permalink
ide-cd: start DMA before sending the actual packet command
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Jan 6, 2009
1 parent 7a38f3c commit 1e91477
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1e91477

Please sign in to comment.