From: Bartlomiej Zolnierkiewicz Date: Tue, 2 Dec 2008 19:40:03 +0000 (+0100) Subject: ide: respect current DMA setting during resume X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9eb8388306364295308132265c00bea685f409f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ide: respect current DMA setting during resume Respect current DMA setting during resume, otherwise PIO timings may get destroyed if host uses shared PIO/MWDMA timings. Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 0be7c4eb11c3..702a627b0083 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -204,10 +204,8 @@ static ide_startstop_t ide_start_power_step(ide_drive_t *drive, struct request * */ if (drive->hwif->dma_ops == NULL) break; - /* - * TODO: respect IDE_DFLAG_USING_DMA - */ - ide_set_dma(drive); + if (drive->dev_flags & IDE_DFLAG_USING_DMA) + ide_set_dma(drive); break; }