Skip to content

Commit

Permalink
cs5520: always tune PIO
Browse files Browse the repository at this point in the history
Since cs5520 uses VDMA best PIO mode was tuned anyway by ide_dma_check()
but only if DMA was successfully initialized.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 18, 2007
1 parent 93c6807 commit f0bb945
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/ide/pci/cs5520.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ static void __devinit init_hwif_cs5520(ide_hwif_t *hwif)
hwif->set_pio_mode = &cs5520_set_pio_mode;
hwif->set_dma_mode = &cs5520_set_dma_mode;

if (hwif->dma_base == 0) {
hwif->drives[1].autotune = hwif->drives[0].autotune = 1;
hwif->drives[0].autotune = 1;
hwif->drives[1].autotune = 1;

if (hwif->dma_base == 0)
return;
}

hwif->ide_dma_on = &cs5520_dma_on;
}
Expand Down

0 comments on commit f0bb945

Please sign in to comment.