]> err.no Git - linux-2.6/commitdiff
ide-cris: handle PIO auto-tuning in tune_cris_ide()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 19 Jul 2007 23:11:59 +0000 (01:11 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 19 Jul 2007 23:11:59 +0000 (01:11 +0200)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/cris/ide-cris.c

index 9361154ba5c257046e0f4c6e93738c9f6266cb13..fbfea46a34f253210830f3a5d314649556b83777 100644 (file)
@@ -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: