diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:37 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:37 -0400 |
commit | eda5b359dc8372424eed94f5a3e27c2deb4e76cf (patch) | |
tree | fced40520225fa475e05738e079be1b86e6fbd79 /drivers/ide | |
parent | dd35b7bb86c1ae6adddf68db71481144941246d1 (diff) |
ide: check drive->using_dma in flagged_taskfile()
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index 6812f4788789..73ef6bf5fbcc 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c | |||
@@ -837,6 +837,9 @@ ide_startstop_t flagged_taskfile (ide_drive_t *drive, ide_task_t *task) | |||
837 | case TASKFILE_OUT_DMA: | 837 | case TASKFILE_OUT_DMA: |
838 | case TASKFILE_IN_DMAQ: | 838 | case TASKFILE_IN_DMAQ: |
839 | case TASKFILE_IN_DMA: | 839 | case TASKFILE_IN_DMA: |
840 | if (!drive->using_dma) | ||
841 | break; | ||
842 | |||
840 | if (!hwif->dma_setup(drive)) { | 843 | if (!hwif->dma_setup(drive)) { |
841 | hwif->dma_exec_cmd(drive, taskfile->command); | 844 | hwif->dma_exec_cmd(drive, taskfile->command); |
842 | hwif->dma_start(drive); | 845 | hwif->dma_start(drive); |