mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
firewire: fix async reception on big endian machines
descriptor.data_address is little endian Tested-by: Olaf Hering <[email protected]> Signed-off-by: Stefan Richter <[email protected]> Signed-off-by: Kristian Høgsberg <[email protected]>
This commit is contained in:
parent
0471448f4d
commit
0a9972baa7
1 changed files with 3 additions and 3 deletions
|
|
@ -373,8 +373,8 @@ static void ar_context_tasklet(unsigned long data)
|
|||
|
||||
offset = offsetof(struct ar_buffer, data);
|
||||
dma_unmap_single(ohci->card.device,
|
||||
ab->descriptor.data_address - offset,
|
||||
PAGE_SIZE, DMA_BIDIRECTIONAL);
|
||||
le32_to_cpu(ab->descriptor.data_address) - offset,
|
||||
PAGE_SIZE, DMA_BIDIRECTIONAL);
|
||||
|
||||
buffer = ab;
|
||||
ab = ab->next;
|
||||
|
|
@ -427,7 +427,7 @@ static void ar_context_run(struct ar_context *ctx)
|
|||
size_t offset;
|
||||
|
||||
offset = offsetof(struct ar_buffer, data);
|
||||
ab_bus = ab->descriptor.data_address - offset;
|
||||
ab_bus = le32_to_cpu(ab->descriptor.data_address) - offset;
|
||||
|
||||
reg_write(ctx->ohci, COMMAND_PTR(ctx->regs), ab_bus | 1);
|
||||
reg_write(ctx->ohci, CONTROL_SET(ctx->regs), CONTEXT_RUN);
|
||||
|
|
|
|||
Loading…
Reference in a new issue