|
@@ -221,7 +221,7 @@ static void sc1200_set_pio_mode(ide_drive_t *drive, const u8 pio)
|
|
|
if (mode != -1) {
|
|
|
printk("SC1200: %s: changing (U)DMA mode\n", drive->name);
|
|
|
ide_dma_off_quietly(drive);
|
|
|
- if (ide_set_dma_mode(drive, mode) == 0)
|
|
|
+ if (ide_set_dma_mode(drive, mode) == 0 && drive->using_dma)
|
|
|
hwif->dma_host_on(drive);
|
|
|
return;
|
|
|
}
|