aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/pdc202xx_old.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-02-16 20:40:25 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-02-16 20:40:25 -0500
commitd8f4469d5f2c35e0b8272f254b42737a2b8ce877 (patch)
tree3528896358f9d707694ab470055a19dfe68b3a09 /drivers/ide/pci/pdc202xx_old.c
parent2ad1e558a2305c2b3d5099ee2f4a5929307c20ca (diff)
ide: disable DMA in ->ide_dma_check for "no IORDY" case (v2)
If DMA is unsupported ->ide_dma_check should disable DMA. v2: * updated for scc_pata Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/pdc202xx_old.c')
-rw-r--r--drivers/ide/pci/pdc202xx_old.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c
index d3be342e5162..b2b8e6ea7e90 100644
--- a/drivers/ide/pci/pdc202xx_old.c
+++ b/drivers/ide/pci/pdc202xx_old.c
@@ -329,12 +329,10 @@ static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive)
329 if (ide_use_dma(drive) && config_chipset_for_dma(drive)) 329 if (ide_use_dma(drive) && config_chipset_for_dma(drive))
330 return hwif->ide_dma_on(drive); 330 return hwif->ide_dma_on(drive);
331 331
332 if (ide_use_fast_pio(drive)) { 332 if (ide_use_fast_pio(drive))
333 pdc202xx_tune_drive(drive, 255); 333 pdc202xx_tune_drive(drive, 255);
334 return hwif->ide_dma_off_quietly(drive); 334
335 } 335 return hwif->ide_dma_off_quietly(drive);
336 /* IORDY not supported */
337 return 0;
338} 336}
339 337
340static int pdc202xx_quirkproc (ide_drive_t *drive) 338static int pdc202xx_quirkproc (ide_drive_t *drive)