]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] pdc202xx_old.c: fix PIO autotuning
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Mon, 19 Jan 2004 13:43:53 +0000 (05:43 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 13:43:53 +0000 (05:43 -0800)
This fixes bugzilla bug #1431.

Always tune controller PIO timings.  This fixes lockup during PIO access
(ie. 'cat /proc/ide/hda/identify') when Promise BIOS is disabled.

drivers/ide/pci/pdc202xx_old.c

index 51c59cec96b0cac34709f8b3875ebe4d4594519e..6281f7a093756704e1ae50b8bbc29e70e20c0fff 100644 (file)
@@ -757,10 +757,7 @@ static void __init init_hwif_pdc202xx (ide_hwif_t *hwif)
 
        hwif->speedproc = &pdc202xx_tune_chipset;
 
-       if (!hwif->dma_base) {
-               hwif->drives[0].autotune = hwif->drives[1].autotune = 1;
-               return;
-       }
+       hwif->drives[0].autotune = hwif->drives[1].autotune = 1;
 
        hwif->ultra_mask = 0x3f;
        hwif->mwdma_mask = 0x07;