Skip to content

Commit

Permalink
[ARM] 3942/1: ARM: comment: consistent_sync should not be called dire…
Browse files Browse the repository at this point in the history
…ctly

/*
 * 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>
  • Loading branch information
Dan Williams authored and Russell King committed Nov 22, 2006
1 parent 8de35ef commit 105ef9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mm/consistent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 4 additions & 0 deletions include/asm-arm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 105ef9a

Please sign in to comment.