Commit 27865454 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev

* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
  [PATCH] libata: add pio flush for via atapi (was: Re: TR: ASUS A8V Deluxe, x86_64)
parents b8bba261 bb31a8fa
...@@ -3643,6 +3643,8 @@ static void ata_pio_block(struct ata_port *ap) ...@@ -3643,6 +3643,8 @@ static void ata_pio_block(struct ata_port *ap)
ata_pio_sector(qc); ata_pio_sector(qc);
} }
ata_altstatus(ap); /* flush */
} }
static void ata_pio_error(struct ata_port *ap) static void ata_pio_error(struct ata_port *ap)
...@@ -3759,11 +3761,14 @@ static void atapi_packet_task(void *_data) ...@@ -3759,11 +3761,14 @@ static void atapi_packet_task(void *_data)
spin_lock_irqsave(&ap->host_set->lock, flags); spin_lock_irqsave(&ap->host_set->lock, flags);
ap->flags &= ~ATA_FLAG_NOINTR; ap->flags &= ~ATA_FLAG_NOINTR;
ata_data_xfer(ap, qc->cdb, qc->dev->cdb_len, 1); ata_data_xfer(ap, qc->cdb, qc->dev->cdb_len, 1);
ata_altstatus(ap); /* flush */
if (qc->tf.protocol == ATA_PROT_ATAPI_DMA) if (qc->tf.protocol == ATA_PROT_ATAPI_DMA)
ap->ops->bmdma_start(qc); /* initiate bmdma */ ap->ops->bmdma_start(qc); /* initiate bmdma */
spin_unlock_irqrestore(&ap->host_set->lock, flags); spin_unlock_irqrestore(&ap->host_set->lock, flags);
} else { } else {
ata_data_xfer(ap, qc->cdb, qc->dev->cdb_len, 1); ata_data_xfer(ap, qc->cdb, qc->dev->cdb_len, 1);
ata_altstatus(ap); /* flush */
/* PIO commands are handled by polling */ /* PIO commands are handled by polling */
ap->hsm_task_state = HSM_ST; ap->hsm_task_state = HSM_ST;
......
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