diff options
-rw-r--r-- | drivers/firewire/ohci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index 5f6bb2c53808..3f59d1df6504 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
@@ -595,6 +595,7 @@ static int ar_context_add_page(struct ar_context *ctx) | |||
595 | ab->descriptor.res_count = cpu_to_le16(PAGE_SIZE - offset); | 595 | ab->descriptor.res_count = cpu_to_le16(PAGE_SIZE - offset); |
596 | ab->descriptor.branch_address = 0; | 596 | ab->descriptor.branch_address = 0; |
597 | 597 | ||
598 | wmb(); /* finish init of new descriptors before branch_address update */ | ||
598 | ctx->last_buffer->descriptor.branch_address = cpu_to_le32(ab_bus | 1); | 599 | ctx->last_buffer->descriptor.branch_address = cpu_to_le32(ab_bus | 1); |
599 | ctx->last_buffer->next = ab; | 600 | ctx->last_buffer->next = ab; |
600 | ctx->last_buffer = ab; | 601 | ctx->last_buffer = ab; |
@@ -982,6 +983,8 @@ static void context_append(struct context *ctx, | |||
982 | d_bus = desc->buffer_bus + (d - desc->buffer) * sizeof(*d); | 983 | d_bus = desc->buffer_bus + (d - desc->buffer) * sizeof(*d); |
983 | 984 | ||
984 | desc->used += (z + extra) * sizeof(*d); | 985 | desc->used += (z + extra) * sizeof(*d); |
986 | |||
987 | wmb(); /* finish init of new descriptors before branch_address update */ | ||
985 | ctx->prev->branch_address = cpu_to_le32(d_bus | z); | 988 | ctx->prev->branch_address = cpu_to_le32(d_bus | z); |
986 | ctx->prev = find_branch_descriptor(d, z); | 989 | ctx->prev = find_branch_descriptor(d, z); |
987 | 990 | ||