Skip to content

Commit

Permalink
ide: respect current DMA setting during resume
Browse files Browse the repository at this point in the history
Respect current DMA setting during resume, otherwise PIO timings
may get destroyed if host uses shared PIO/MWDMA timings.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Dec 2, 2008
1 parent c7b997b commit e9eb838
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/ide/ide-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e9eb838

Please sign in to comment.