From 4a59db4e3490544e08fec28f38e8056959e71533 Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Mon, 19 Jan 2004 05:43:53 -0800 Subject: [PATCH] [PATCH] pdc202xx_old.c: fix PIO autotuning 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c index 51c59cec96b0c..6281f7a093756 100644 --- a/drivers/ide/pci/pdc202xx_old.c +++ b/drivers/ide/pci/pdc202xx_old.c @@ -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; -- 2.53.0