Skip to contentSkip to conversation

sl82c105: add PIO autotune fallback to ->ide_dma_check

PATCH In review Bartlomiej Zolnierkiewicz 1 participant 1 message Aug 4, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 8/11 sl82c105: add PIO autotune fallback to ->ide_dma_check

Since sl82c105 re-programs DMA/PIO timings for DMA enable/disable, and sets ->autotune this change shouldn't have any other effect than bringing sl82c105 driver in-line with other host drivers wrt ->ide_dma_check implementation.

---
 drivers/ide/pci/sl82c105.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/ide/pci/sl82c105.c +2 -0
Index: b/drivers/ide/pci/sl82c105.c
===================================================================
@@ -154,6 +154,8 @@ static int sl82c105_ide_dma_check(ide_dr
 	if (ide_tune_dma(drive))
 		return 0;
 
+	ide_set_max_pio(drive);
+
 	return -1;
 }