Merge to Fedora kernel-2.6.6-1.422
[linux-2.6.git] / drivers / scsi / sata_promise.c
index 94954eb..268b2c3 100644 (file)
@@ -457,14 +457,14 @@ static void pdc_dma_start(struct ata_queued_cmd *qc)
 
 static void pdc_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf)
 {
-       if (tf->protocol == ATA_PROT_PIO)
+       if (tf->protocol != ATA_PROT_DMA)
                ata_tf_load_mmio(ap, tf);
 }
 
 
 static void pdc_exec_command_mmio(struct ata_port *ap, struct ata_taskfile *tf)
 {
-       if (tf->protocol == ATA_PROT_PIO)
+       if (tf->protocol != ATA_PROT_DMA)
                ata_exec_command_mmio(ap, tf);
 }