Commit b7811da2 authored by Stefan Richter's avatar Stefan Richter

firewire: fw-sbp2: prepare for s/g chaining

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 285838eb
...@@ -1107,9 +1107,9 @@ sbp2_map_scatterlist(struct sbp2_command_orb *orb, struct fw_device *device, ...@@ -1107,9 +1107,9 @@ sbp2_map_scatterlist(struct sbp2_command_orb *orb, struct fw_device *device,
* elements larger than 65535 bytes, some IOMMUs may merge sg elements * elements larger than 65535 bytes, some IOMMUs may merge sg elements
* during DMA mapping, and Linux currently doesn't prevent this. * during DMA mapping, and Linux currently doesn't prevent this.
*/ */
for (i = 0, j = 0; i < count; i++) { for (i = 0, j = 0; i < count; i++, sg = sg_next(sg)) {
sg_len = sg_dma_len(sg + i); sg_len = sg_dma_len(sg);
sg_addr = sg_dma_address(sg + i); sg_addr = sg_dma_address(sg);
while (sg_len) { while (sg_len) {
/* FIXME: This won't get us out of the pinch. */ /* FIXME: This won't get us out of the pinch. */
if (unlikely(j >= ARRAY_SIZE(orb->page_table))) { if (unlikely(j >= ARRAY_SIZE(orb->page_table))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment