ide: fix enabling DMA on it821x in "smart" mode
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 7 Mar 2008 20:53:49 +0000 (21:53 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 7 Mar 2008 20:53:49 +0000 (21:53 +0100)
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>
drivers/ide/ide-dma.c

index 2de99e4be5c9b963ebfbf263884d6f55f1d82d56..d61e5788d310f06dc42c12d7f7cd507e8fa10a39 100644 (file)
@@ -713,7 +713,7 @@ static int ide_tune_dma(ide_drive_t *drive)
        }
 
        if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)
        }
 
        if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)
-               return 0;
+               return 1;
 
        if (ide_set_dma_mode(drive, speed))
                return 0;
 
        if (ide_set_dma_mode(drive, speed))
                return 0;