aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/pdc202xx_old.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-05-15 18:51:43 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-05-15 18:51:43 -0400
commitbd203b57c7edd6bc457b769cd15fa7239cd2241e (patch)
tree9c62fee37780fa38bbd47bbbec00571159ec9093 /drivers/ide/pci/pdc202xx_old.c
parent5fd216bbb277b645109a889c489e13a7aafbc304 (diff)
ide: use ide_tune_dma() part #2
Use ide_tune_dma() in ide-cris/it821x/pdc202xx_old/serverworks drivers. 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.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c
index a6dd9c815342..23844687deea 100644
--- a/drivers/ide/pci/pdc202xx_old.c
+++ b/drivers/ide/pci/pdc202xx_old.c
@@ -181,23 +181,11 @@ static void pdc_old_disable_66MHz_clock(ide_hwif_t *hwif)
181 outb(clock & ~(hwif->channel ? 0x08 : 0x02), clock_reg); 181 outb(clock & ~(hwif->channel ? 0x08 : 0x02), clock_reg);
182} 182}
183 183
184static int config_chipset_for_dma (ide_drive_t *drive)
185{
186 u8 speed = ide_max_dma_mode(drive);
187
188 if (!speed)
189 return 0;
190
191 (void)pdc202xx_tune_chipset(drive, speed);
192
193 return ide_dma_enable(drive);
194}
195
196static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive) 184static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive)
197{ 185{
198 drive->init_speed = 0; 186 drive->init_speed = 0;
199 187
200 if (ide_use_dma(drive) && config_chipset_for_dma(drive)) 188 if (ide_tune_dma(drive))
201 return 0; 189 return 0;
202 190
203 if (ide_use_fast_pio(drive)) 191 if (ide_use_fast_pio(drive))