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: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent b348487f
...@@ -713,7 +713,7 @@ static int ide_tune_dma(ide_drive_t *drive) ...@@ -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)) if (ide_set_dma_mode(drive, speed))
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment