Skip to contentSkip to conversation

ide-pmac: add PIO autotune fallback to ->ide_dma_check

PATCH In review Bartlomiej Zolnierkiewicz 2 participants 2 messages Aug 4, 2007 – Aug 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 10/11 ide-pmac: add PIO autotune fallback to ->ide_dma_check

Since ide-pmac allows separate PIO and DMA timings, and ide-pmac always sets ->autotune this change shouldn't have any other effect than bringing ide-pmac driver in-line with other host drivers wrt ->ide_dma_check implementation.

---
 drivers/ide/ppc/pmac.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/ide/ppc/pmac.c +2 -0
Index: b/drivers/ide/ppc/pmac.c
===================================================================
@@ -1587,6 +1587,8 @@ pmac_ide_dma_check(ide_drive_t *drive)
 	if (ide_tune_dma(drive))
 		return 0;
 
+	ide_set_max_pio(drive);
+
 	return -1;
 }