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>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user