Several host drivers used to reset drive->init_speed in their ->ide_dma_check
implementations which resulted in incorrect init speed being reported to the
user, fix it.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
static int ali15x3_config_drive_for_dma(ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int atiixp_dma_check(ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int cs5535_dma_check(ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int hpt34x_config_drive_xfer_rate (ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return -1;
static int hpt366_config_drive_xfer_rate(ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int pdcnew_config_drive_xfer_rate(ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int piix_config_drive_xfer_rate (ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int svwks_config_drive_xfer_rate (ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int sis5513_config_xfer_rate(ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;
static int slc90e66_config_drive_xfer_rate (ide_drive_t *drive)
{
- drive->init_speed = 0;
-
if (ide_tune_dma(drive))
return 0;