From: Bartlomiej Zolnierkiewicz Date: Tue, 16 Oct 2007 20:29:55 +0000 (+0200) Subject: ide-cris: add PIO autotune fallback to ->ide_dma_check X-Git-Tag: v2.6.24-rc1~822^2~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef539b57dfe731e2d4fb6f02158e979114ab5b69;p=linux-2.6 ide-cris: add PIO autotune fallback to ->ide_dma_check Since ide-cris allows separate PIO and DMA timings, and ide-cris always sets ->autotune this change shouldn't have any other effect than bringing ide-cris driver in-line with other host drivers wrt ->ide_dma_check implementation. Cc: Mikael Starvik Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index d88d763d64..303f26559d 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c @@ -1025,6 +1025,8 @@ static int cris_dma_check(ide_drive_t *drive) if (ide_tune_dma(drive)) return 0; + ide_set_max_pio(drive); + return -1; }