Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344416
b: refs/heads/master
c: 52bd497
h: refs/heads/master
v: v3
  • Loading branch information
Sergei Shtylyov authored and Jeff Garzik committed Nov 28, 2012
1 parent b9509cb commit 85e42b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 121650a55535e4a3f152a30ee42f26e815eff714
refs/heads/master: 52bd4978c61bc23e619a4287a3d30814c97b5d4e
7 changes: 5 additions & 2 deletions trunk/drivers/ata/pata_arasan_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,13 +674,16 @@ void arasan_cf_error_handler(struct ata_port *ap)

static void arasan_cf_dma_start(struct arasan_cf_dev *acdev)
{
struct ata_queued_cmd *qc = acdev->qc;
struct ata_port *ap = qc->ap;
struct ata_taskfile *tf = &qc->tf;
u32 xfer_ctr = readl(acdev->vbase + XFER_CTR) & ~XFER_DIR_MASK;
u32 write = acdev->qc->tf.flags & ATA_TFLAG_WRITE;
u32 write = tf->flags & ATA_TFLAG_WRITE;

xfer_ctr |= write ? XFER_WRITE : XFER_READ;
writel(xfer_ctr, acdev->vbase + XFER_CTR);

acdev->qc->ap->ops->sff_exec_command(acdev->qc->ap, &acdev->qc->tf);
ap->ops->sff_exec_command(ap, tf);
ata_sff_queue_work(&acdev->work);
}

Expand Down

0 comments on commit 85e42b3

Please sign in to comment.