Skip to content
Snippets Groups Projects
Commit f0bb945c authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

cs5520: always tune PIO


Since cs5520 uses VDMA best PIO mode was tuned anyway by ide_dma_check()
but only if DMA was successfully initialized.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 93c68079
No related branches found
No related tags found
No related merge requests found
...@@ -123,10 +123,11 @@ static void __devinit init_hwif_cs5520(ide_hwif_t *hwif) ...@@ -123,10 +123,11 @@ static void __devinit init_hwif_cs5520(ide_hwif_t *hwif)
hwif->set_pio_mode = &cs5520_set_pio_mode; hwif->set_pio_mode = &cs5520_set_pio_mode;
hwif->set_dma_mode = &cs5520_set_dma_mode; hwif->set_dma_mode = &cs5520_set_dma_mode;
if (hwif->dma_base == 0) { hwif->drives[0].autotune = 1;
hwif->drives[1].autotune = hwif->drives[0].autotune = 1; hwif->drives[1].autotune = 1;
if (hwif->dma_base == 0)
return; return;
}
hwif->ide_dma_on = &cs5520_dma_on; hwif->ide_dma_on = &cs5520_dma_on;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment