From c6778548264d1979275adb3fcbdbb9686d6769a9 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 21 Nov 2006 22:57:23 +0100 Subject: [PATCH] --- yaml --- r: 41061 b: refs/heads/master c: 105ef9a0af1469a9dd906839dd4628aa9c013f58 h: refs/heads/master i: 41059: 8fe114ab69d2a508d439e4d13afd4816bab68a1a v: v3 --- [refs] | 2 +- trunk/arch/arm/mm/consistent.c | 3 +++ trunk/include/asm-arm/dma-mapping.h | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a9d66854e995..a7f536d37ded 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8de35efb6afa75f25415d54e21221eea759db261 +refs/heads/master: 105ef9a0af1469a9dd906839dd4628aa9c013f58 diff --git a/trunk/arch/arm/mm/consistent.c b/trunk/arch/arm/mm/consistent.c index 50e6b6bfb2e2..b797217e82be 100644 --- a/trunk/arch/arm/mm/consistent.c +++ b/trunk/arch/arm/mm/consistent.c @@ -476,6 +476,9 @@ core_initcall(consistent_init); /* * Make an area consistent for devices. + * Note: Drivers should NOT use this function directly, as it will break + * platforms with CONFIG_DMABOUNCE. + * Use the driver DMA support - see dma-mapping.h (dma_sync_*) */ void consistent_sync(void *vaddr, size_t size, int direction) { diff --git a/trunk/include/asm-arm/dma-mapping.h b/trunk/include/asm-arm/dma-mapping.h index 55eb4dc3253d..666617711c81 100644 --- a/trunk/include/asm-arm/dma-mapping.h +++ b/trunk/include/asm-arm/dma-mapping.h @@ -12,6 +12,10 @@ * uncached, unwrite-buffered mapped memory space for use with DMA * devices. This is the "generic" version. The PCI specific version * is in pci.h + * + * Note: Drivers should NOT use this function directly, as it will break + * platforms with CONFIG_DMABOUNCE. + * Use the driver DMA support - see dma-mapping.h (dma_sync_*) */ extern void consistent_sync(void *kaddr, size_t size, int rw);