aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-iops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r--drivers/ide/ide-iops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index 6c54fe1f9841..c9d15be4c48d 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -866,8 +866,7 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed)
866 866
867 skip: 867 skip:
868#ifdef CONFIG_BLK_DEV_IDEDMA 868#ifdef CONFIG_BLK_DEV_IDEDMA
869 if ((speed >= XFER_SW_DMA_0 || (hwif->host_flags & IDE_HFLAG_VDMA)) && 869 if (speed >= XFER_SW_DMA_0 && drive->using_dma)
870 drive->using_dma)
871 hwif->dma_ops->dma_host_set(drive, 1); 870 hwif->dma_ops->dma_host_set(drive, 1);
872 else if (hwif->dma_ops) /* check if host supports DMA */ 871 else if (hwif->dma_ops) /* check if host supports DMA */
873 ide_dma_off_quietly(drive); 872 ide_dma_off_quietly(drive);