mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
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:
parent
b348487f0d
commit
ef4298d0f0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue