From: Bartlomiej Zolnierkiewicz Date: Thu, 19 Jul 2007 23:11:59 +0000 (+0200) Subject: ide-cris: handle PIO auto-tuning in tune_cris_ide() X-Git-Tag: v2.6.23-rc1~248^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d281e9ad87f79fd01ce1fc2d2f258e2ee765bc5a;p=linux-2.6 ide-cris: handle PIO auto-tuning in tune_cris_ide() Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index 9361154ba5..fbfea46a34 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c @@ -684,6 +684,8 @@ static void tune_cris_ide(ide_drive_t *drive, u8 pio) { int setup, strobe, hold; + pio = ide_get_best_pio_mode(drive, pio, 4); + switch(pio) { case 0: