Commit a9403f0a authored by Jeff Garzik's avatar Jeff Garzik

[libata sata_promise] fix taskfile delivery cases

We should only be touching the ATA shadow registers if we are doing
PIO.
parent 70228731
......@@ -1180,14 +1180,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_DMA)
if (tf->protocol == ATA_PROT_PIO)
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_DMA)
if (tf->protocol == ATA_PROT_PIO)
ata_exec_command_mmio(ap, tf);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment