Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1e1d196bf5d9258f9583a05c41c1c351ffcdeac2 Commit: 1e1d196bf5d9258f9583a05c41c1c351ffcdeac2 Parent: 9b32d5f3074e9b1afaa39a360a59fd77a2214783 Author: Kristian Høgsberg <[EMAIL PROTECTED]> AuthorDate: Fri Feb 16 17:34:45 2007 -0500 Committer: Stefan Richter <[EMAIL PROTECTED]> CommitDate: Fri Mar 9 22:03:01 2007 +0100
firewire: Set correct buffer lengths for dualbuffer DMA descriptor. Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]> Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> --- drivers/firewire/fw-ohci.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c index b5a1545..76ac70a 100644 --- a/drivers/firewire/fw-ohci.c +++ b/drivers/firewire/fw-ohci.c @@ -1583,10 +1583,7 @@ ohci_queue_iso_receive(struct fw_iso_context *base, descriptor_branch_always); db->first_size = cpu_to_le16(ctx->base.header_size); db->first_req_count = cpu_to_le16(p->header_length); - db->second_req_count = cpu_to_le16(p->payload_length); - db->first_res_count = cpu_to_le16(db->first_req_count); - db->second_res_count = cpu_to_le16(db->second_req_count); - + db->first_res_count = db->first_req_count; db->first_buffer = cpu_to_le32(d_bus + sizeof *db); if (offset + rest < PAGE_SIZE) @@ -1594,6 +1591,8 @@ ohci_queue_iso_receive(struct fw_iso_context *base, else length = PAGE_SIZE - offset; + db->second_req_count = cpu_to_le16(length); + db->second_res_count = db->second_req_count; page_bus = page_private(buffer->pages[page]); db->second_buffer = cpu_to_le32(page_bus + offset); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html