diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-12-02 14:40:03 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-12-02 14:40:03 -0500 |
commit | e9eb8388306364295308132265c00bea685f409f (patch) | |
tree | 6f2ef0c8a08a9b4b5d07781a85b11cf40f4b7e01 /drivers | |
parent | c7b997b372e8b6e7ee8d91696c74a556754f5fdb (diff) |
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 <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-io.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 * | |||
204 | */ | 204 | */ |
205 | if (drive->hwif->dma_ops == NULL) | 205 | if (drive->hwif->dma_ops == NULL) |
206 | break; | 206 | break; |
207 | /* | 207 | if (drive->dev_flags & IDE_DFLAG_USING_DMA) |
208 | * TODO: respect IDE_DFLAG_USING_DMA | 208 | ide_set_dma(drive); |
209 | */ | ||
210 | ide_set_dma(drive); | ||
211 | break; | 209 | break; |
212 | } | 210 | } |
213 | 211 | ||