Skip to content

Commit

Permalink
ide: fix enabling DMA on it821x in "smart" mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 7, 2008
1 parent b348487 commit ef4298d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef4298d

Please sign in to comment.