[ARM] 3942/1: ARM: comment: consistent_sync should not be called directly
authorDan Williams <dan.j.williams@intel.com>
Tue, 21 Nov 2006 21:57:23 +0000 (22:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 Nov 2006 22:45:57 +0000 (22:45 +0000)
/*
 * 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_*)
 */

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/consistent.c
include/asm-arm/dma-mapping.h

index 50e6b6bfb2e231edd8321e3dea7be4cc5fffa6b8..b797217e82be0ed01d959cf52f909a72fdeffed6 100644 (file)
@@ -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)
 {
index 55eb4dc3253ddfd1dea70d7900b2be0a1caa9ed9..666617711c81d259745ba2b0dc12d935c4d4fb0a 100644 (file)
  * 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);