Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57059
b: refs/heads/master
c: ec839e4
h: refs/heads/master
i:
  57057: ae3331e
  57055: 8a48ba7
v: v3
  • Loading branch information
Kristian Høgsberg authored and Stefan Richter committed May 27, 2007
1 parent 0da40c0 commit 72c8c94
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 976da96a5d4fe84bd292b950e566325dc3e5904e
refs/heads/master: ec839e43fbe1b1ab74264ac510f6cd9c8e8334a4
5 changes: 3 additions & 2 deletions trunk/drivers/firewire/fw-ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ static int ar_context_add_page(struct ar_context *ctx)

dma_sync_single_for_device(dev, ab_bus, PAGE_SIZE, DMA_BIDIRECTIONAL);

ctx->last_buffer->descriptor.branch_address = ab_bus | 1;
ctx->last_buffer->descriptor.branch_address = cpu_to_le32(ab_bus | 1);
ctx->last_buffer->next = ab;
ctx->last_buffer = ab;

Expand Down Expand Up @@ -417,7 +417,8 @@ ar_context_init(struct ar_context *ctx, struct fw_ohci *ohci, u32 regs)
ctx->current_buffer = ab.next;
ctx->pointer = ctx->current_buffer->data;

reg_write(ctx->ohci, COMMAND_PTR(ctx->regs), ab.descriptor.branch_address);
reg_write(ctx->ohci, COMMAND_PTR(ctx->regs),
le32_to_cpu(ab.descriptor.branch_address));
reg_write(ctx->ohci, CONTROL_SET(ctx->regs), CONTEXT_RUN);
flush_writes(ctx->ohci);

Expand Down

0 comments on commit 72c8c94

Please sign in to comment.