Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112308
b: refs/heads/master
c: 309dbba
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Sep 30, 2008
1 parent c1f599b commit 9f86051
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 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: 0e18b5d7c6339311f1e32e7b186ae3556c5b6d33
refs/heads/master: 309dbbabee7b19e003e1ba4b98f43d28f390a84e
6 changes: 1 addition & 5 deletions trunk/arch/arm/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,7 @@ static inline void dma_sync_single_range_for_cpu(struct device *dev,
{
BUG_ON(!valid_dma_direction(dir));

if (!dmabounce_sync_for_cpu(dev, handle, offset, size, dir))
return;

if (!arch_is_coherent())
dma_cache_maint(dma_to_virt(dev, handle) + offset, size, dir);
dmabounce_sync_for_cpu(dev, handle, offset, size, dir);
}

static inline void dma_sync_single_range_for_device(struct device *dev,
Expand Down
8 changes: 2 additions & 6 deletions trunk/arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,12 +585,8 @@ void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg,
int i;

for_each_sg(sg, s, nents, i) {
if (!dmabounce_sync_for_cpu(dev, sg_dma_address(s), 0,
sg_dma_len(s), dir))
continue;

if (!arch_is_coherent())
dma_cache_maint(sg_virt(s), s->length, dir);
dmabounce_sync_for_cpu(dev, sg_dma_address(s), 0,
sg_dma_len(s), dir);
}
}
EXPORT_SYMBOL(dma_sync_sg_for_cpu);
Expand Down

0 comments on commit 9f86051

Please sign in to comment.