summaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-07-20 01:11:59 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-07-20 01:11:59 +0200
commitd281e9ad87f79fd01ce1fc2d2f258e2ee765bc5a (patch)
tree4b498af97d73599d7f2b4ed350ef03bb7908a377 /drivers/ide
parent4099d14322149c7a467e4997b87be4ba8eb78697 (diff)
downloadblackbird-op-linux-d281e9ad87f79fd01ce1fc2d2f258e2ee765bc5a.tar.gz
blackbird-op-linux-d281e9ad87f79fd01ce1fc2d2f258e2ee765bc5a.zip
ide-cris: handle PIO auto-tuning in tune_cris_ide()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/cris/ide-cris.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c
index 9361154ba5c2..fbfea46a34f2 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:
OpenPOWER on IntegriCloud