OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7b997b
)
ide: respect current DMA setting during resume
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Tue, 2 Dec 2008 19:40:03 +0000
(20:40 +0100)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Tue, 2 Dec 2008 19:40:03 +0000
(20:40 +0100)
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>
drivers/ide/ide-io.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-io.c
b/drivers/ide/ide-io.c
index
0be7c4e
..
702a627
100644
(file)
--- 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;
}