Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72198
b: refs/heads/master
c: 83fcaf7
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Oct 23, 2007
1 parent a0e2261 commit 4df7572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71df50a4e4ca9934bbf520c87612d711278f38af
refs/heads/master: 83fcaf70403ce04c693b52e62c794834b9a86089
7 changes: 3 additions & 4 deletions trunk/include/asm-avr32/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
for (i = 0; i < nents; i++) {
char *virt;

sg[i].dma_address = page_to_bus(sg[i].page) + sg[i].offset;
virt = page_address(sg[i].page) + sg[i].offset;
sg[i].dma_address = page_to_bus(sg_page(&sg[i])) + sg[i].offset;
virt = sg_virt(&sg[i]);
dma_cache_sync(dev, virt, sg[i].length, direction);
}

Expand Down Expand Up @@ -327,8 +327,7 @@ dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
int i;

for (i = 0; i < nents; i++) {
dma_cache_sync(dev, page_address(sg[i].page) + sg[i].offset,
sg[i].length, direction);
dma_cache_sync(dev, sg_virt(&sg[i]), sg[i].length, direction);
}
}

Expand Down

0 comments on commit 4df7572

Please sign in to comment.