From: Bartlomiej Zolnierkiewicz Date: Tue, 16 Oct 2007 20:29:55 +0000 (+0200) Subject: ide-pmac: add PIO autotune fallback to ->ide_dma_check X-Git-Tag: v3.12-rc1~25836^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8b739d3361c16773a30fe5c0360336bbc19f435;p=kernel%2Fkernel-generic.git 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. Cc: Benjamin Herrenschmidt Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c index 9e86406..e085938 100644 --- a/drivers/ide/ppc/pmac.c +++ b/drivers/ide/ppc/pmac.c @@ -1588,6 +1588,8 @@ pmac_ide_dma_check(ide_drive_t *drive) if (ide_tune_dma(drive)) return 0; + ide_set_max_pio(drive); + return -1; }