summaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2012-03-18 19:01:39 +0100
committerStefan Richter <stefanr@s5r6.in-berlin.de>2012-03-18 22:15:38 +0100
commit32c507f7b73d74c00caae6bbbd539f368be5d108 (patch)
treeca6994989dd5735833dbe1b9133e2e6133b45790 /drivers/firewire
parenta7611e84bd06c70c8b0cd88cd1e474c3c42fee3e (diff)
downloadblackbird-op-linux-32c507f7b73d74c00caae6bbbd539f368be5d108.tar.gz
blackbird-op-linux-32c507f7b73d74c00caae6bbbd539f368be5d108.zip
firewire: ohci: copy_iso_headers(): make comment match the code
The comment incorrectly talked about one little-endian quadlet, while there are actually two. Furthermore, the endianness of the remaining headers depends on whatever protocol is used, so don't mention them. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/ohci.c7
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)
return;
/*
- * The iso header is byteswapped to little endian by
- * the controller, but the remaining header quadlets
- * are big endian. We want to present all the headers
- * as big endian, so we have to swap the first quadlet.
+ * The two iso header quadlets are byteswapped to little
+ * endian by the controller, but we want to present them
+ * as big endian for consistency with the bus endianness.
*/
if (ctx->base.header_size > 0)
*(u32 *) (ctx->header + i) = __swab32(*(u32 *) (p + 4));
OpenPOWER on IntegriCloud