diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-15 18:51:43 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-15 18:51:43 -0400 |
commit | 793a97228d3da876f42b7fb4d4a52cc8cc86dc81 (patch) | |
tree | ce76adb97bca7089e8bc96cb774d90fb3e254926 /drivers/ide/ide.c | |
parent | 7f86723a60d287be19aee620277184f9f5455283 (diff) |
ide: always disable DMA before tuning it
ide_start_power_step() and set_using_dma() were missing ->dma_off_quietly
call (comment in probe_hwif() states that DMA should be always cleared before
tuning is attempted). Fix it.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index f2b547ff7722..6002713a20a1 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -910,6 +910,7 @@ int set_using_dma(ide_drive_t *drive, int arg) | |||
910 | err = 0; | 910 | err = 0; |
911 | 911 | ||
912 | if (arg) { | 912 | if (arg) { |
913 | hwif->dma_off_quietly(drive); | ||
913 | if (ide_set_dma(drive) || hwif->ide_dma_on(drive)) | 914 | if (ide_set_dma(drive) || hwif->ide_dma_on(drive)) |
914 | err = -EIO; | 915 | err = -EIO; |
915 | } else | 916 | } else |