ide: check drive->using_dma in flagged_taskfile()
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
Родитель
dd35b7bb86
Коммит
eda5b359dc
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче