Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9eb8388 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

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: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent c7b997b3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -204,9 +204,7 @@ 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
		 */
		if (drive->dev_flags & IDE_DFLAG_USING_DMA)
			ide_set_dma(drive);
		break;
	}