ide: ide_start_power_step() fix WRT disabling DMA

* Do the same thing as probe_hwif() and always disable DMA so chipset DMA
  enabled bit gets cleared (if the drive doesn't support DMA ide_set_dma()
  won't try to tune it anyway).

* Add TODO comment about respecting ->using_dma setting.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
Bartlomiej Zolnierkiewicz 2007-07-20 01:11:56 +02:00
Родитель 1c164acf50
Коммит 8987d21ba6
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -224,11 +224,12 @@ static ide_startstop_t ide_start_power_step(ide_drive_t *drive, struct request *
* we could be smarter and check for current xfer_speed * we could be smarter and check for current xfer_speed
* in struct drive etc... * in struct drive etc...
*/ */
if ((drive->id->capability & 1) == 0)
break;
if (drive->hwif->ide_dma_check == NULL) if (drive->hwif->ide_dma_check == NULL)
break; break;
drive->hwif->dma_off_quietly(drive); drive->hwif->dma_off_quietly(drive);
/*
* TODO: respect ->using_dma setting
*/
ide_set_dma(drive); ide_set_dma(drive);
break; break;
} }