|
@@ -374,28 +374,6 @@ static int siimage_tune_chipset (ide_drive_t *drive, byte xferspeed)
|
|
|
return (ide_config_drive_speed(drive, speed));
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * config_chipset_for_dma - configure for DMA
|
|
|
- * @drive: drive to configure
|
|
|
- *
|
|
|
- * Called by the IDE layer when it wants the timings set up.
|
|
|
- * For the CMD680 we also need to set up the PIO timings and
|
|
|
- * enable DMA.
|
|
|
- */
|
|
|
-
|
|
|
-static int config_chipset_for_dma (ide_drive_t *drive)
|
|
|
-{
|
|
|
- u8 speed = ide_max_dma_mode(drive);
|
|
|
-
|
|
|
- if (!speed)
|
|
|
- return 0;
|
|
|
-
|
|
|
- if (siimage_tune_chipset(drive, speed))
|
|
|
- return 0;
|
|
|
-
|
|
|
- return ide_dma_enable(drive);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* siimage_configure_drive_for_dma - set up for DMA transfers
|
|
|
* @drive: drive we are going to set up
|
|
@@ -408,7 +386,7 @@ static int config_chipset_for_dma (ide_drive_t *drive)
|
|
|
|
|
|
static int siimage_config_drive_for_dma (ide_drive_t *drive)
|
|
|
{
|
|
|
- if (ide_use_dma(drive) && config_chipset_for_dma(drive))
|
|
|
+ if (ide_tune_dma(drive))
|
|
|
return 0;
|
|
|
|
|
|
if (ide_use_fast_pio(drive))
|