From: Bartlomiej Zolnierkiewicz Date: Tue, 16 Oct 2007 20:29:54 +0000 (+0200) Subject: sl82c105: add PIO autotune fallback to ->ide_dma_check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d6ae3adb2efb078bcbcf727030771408dafd8ed4;p=linux-beck.git 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. Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/pci/sl82c105.c b/drivers/ide/pci/sl82c105.c index 2ef26e3f7be4..245eac05ab1b 100644 --- a/drivers/ide/pci/sl82c105.c +++ b/drivers/ide/pci/sl82c105.c @@ -154,6 +154,8 @@ static int sl82c105_ide_dma_check(ide_drive_t *drive) if (ide_tune_dma(drive)) return 0; + ide_set_max_pio(drive); + return -1; }