diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-03-07 15:53:49 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-03-07 15:53:49 -0500 |
commit | ef4298d0f06c788d204caa9e395de6e9e2fd9fc9 (patch) | |
tree | 301f517612e2afefe13d9ca8129d1f98c7d24a1a /drivers | |
parent | b348487f0dc06f09a4c0d9e353eaa66e70230c7d (diff) |
ide: fix enabling DMA on it821x in "smart" mode
ide_tune_dma() should return '1' if IDE_HFLAG_NO_SET_MODE host flag is set.
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 2de99e4be5c9..d61e5788d310 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -713,7 +713,7 @@ static int ide_tune_dma(ide_drive_t *drive) | |||
713 | } | 713 | } |
714 | 714 | ||
715 | if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) | 715 | if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) |
716 | return 0; | 716 | return 1; |
717 | 717 | ||
718 | if (ide_set_dma_mode(drive, speed)) | 718 | if (ide_set_dma_mode(drive, speed)) |
719 | return 0; | 719 | return 0; |