ide: check drive->using_dma in flagged_taskfile()

Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent dd35b7bb
...@@ -837,6 +837,9 @@ ide_startstop_t flagged_taskfile (ide_drive_t *drive, ide_task_t *task) ...@@ -837,6 +837,9 @@ ide_startstop_t flagged_taskfile (ide_drive_t *drive, ide_task_t *task)
case TASKFILE_OUT_DMA: case TASKFILE_OUT_DMA:
case TASKFILE_IN_DMAQ: case TASKFILE_IN_DMAQ:
case TASKFILE_IN_DMA: case TASKFILE_IN_DMA:
if (!drive->using_dma)
break;
if (!hwif->dma_setup(drive)) { if (!hwif->dma_setup(drive)) {
hwif->dma_exec_cmd(drive, taskfile->command); hwif->dma_exec_cmd(drive, taskfile->command);
hwif->dma_start(drive); hwif->dma_start(drive);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment