]> git.baikalelectronics.ru Git - kernel.git/commit
sparc32,leon: Remove unnecessary page_address calls in LEON DMA API.
authorKristoffer Glembo <kristoffer@gaisler.com>
Thu, 28 Apr 2011 22:17:00 +0000 (22:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2011 20:41:40 +0000 (13:41 -0700)
commit54496a5b4400e162b9507159121427957a429f93
tree8be22ee127abee5e493a3ed427f0d94fb5bb7f6e
parent7c7f6b5cf4be98ffdaab7170d6219726eb13b1a1
sparc32,leon: Remove unnecessary page_address calls in LEON DMA API.

The function mmu_inval_dma_area takes a virtual address as a parameter
which is problematic in case the buffer is located in highmem and the
mapping currently is unavailable.

Since the function was only implemented for LEON this patch removes
calls to it in non LEON code paths and renames it to dma_make_coherent
which instead takes a physical address (which for now is unused since we
flush the whole cache). This way it is possible to remove several unnecessary
calls to page_address which will fail if the virtual mapping is unavailable.

Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ioport.c