diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-03-07 21:53:49 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-03-07 21:53:49 +0100 |
commit | ef4298d0f06c788d204caa9e395de6e9e2fd9fc9 (patch) | |
tree | 301f517612e2afefe13d9ca8129d1f98c7d24a1a /drivers/ide/ide-dma.c | |
parent | ide-cd: mark REQ_TYPE_ATA_PC write requests with REQ_RW flag (diff) | |
download | linux-ef4298d0f06c788d204caa9e395de6e9e2fd9fc9.tar.xz linux-ef4298d0f06c788d204caa9e395de6e9e2fd9fc9.zip |
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 '')
-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) } if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) - return 0; + return 1; if (ide_set_dma_mode(drive, speed)) return 0; |