diff options
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/ohci.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index e52615a14382..74ff1a8f4fcb 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
@@ -2685,10 +2685,9 @@ static void copy_iso_headers(struct iso_context *ctx, void *p) | |||
2685 | return; | 2685 | return; |
2686 | 2686 | ||
2687 | /* | 2687 | /* |
2688 | * The iso header is byteswapped to little endian by | 2688 | * The two iso header quadlets are byteswapped to little |
2689 | * the controller, but the remaining header quadlets | 2689 | * endian by the controller, but we want to present them |
2690 | * are big endian. We want to present all the headers | 2690 | * as big endian for consistency with the bus endianness. |
2691 | * as big endian, so we have to swap the first quadlet. | ||
2692 | */ | 2691 | */ |
2693 | if (ctx->base.header_size > 0) | 2692 | if (ctx->base.header_size > 0) |
2694 | *(u32 *) (ctx->header + i) = __swab32(*(u32 *) (p + 4)); | 2693 | *(u32 *) (ctx->header + i) = __swab32(*(u32 *) (p + 4)); |