diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2007-02-05 08:48:08 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-08 09:49:40 -0500 |
commit | 953233dc9958ba2b29753d0f24e37a33a076a5f6 (patch) | |
tree | b9cc9ddc82722dc79a72a8c6f4977566ec2e0384 /arch/arm/common/dmabounce.c | |
parent | 7f8e33546d17c7d8849be3a6623c3b6b3c9b588b (diff) |
[ARM] 4134/1: Add generic support for outer caches
The outer cache can be L2 as on RealView/EB MPCore platform or even L3
or further on ARMv7 cores. This patch adds the generic support for
flushing the outer cache in the DMA operations.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common/dmabounce.c')
-rw-r--r-- | arch/arm/common/dmabounce.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c index 272702accd8b..b4748e3171c6 100644 --- a/arch/arm/common/dmabounce.c +++ b/arch/arm/common/dmabounce.c | |||
@@ -338,6 +338,7 @@ unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, | |||
338 | */ | 338 | */ |
339 | ptr = (unsigned long)buf->ptr; | 339 | ptr = (unsigned long)buf->ptr; |
340 | dmac_clean_range(ptr, ptr + size); | 340 | dmac_clean_range(ptr, ptr + size); |
341 | outer_clean_range(__pa(ptr), __pa(ptr) + size); | ||
341 | } | 342 | } |
342 | free_safe_buffer(device_info, buf); | 343 | free_safe_buffer(device_info, buf); |
343 | } | 344 | } |