]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
MIPS: Fix oops in dma_unmap_page on not coherent mips platforms
authorJan Nikitenko <jan.nikitenko@gmail.com>
Fri, 28 Nov 2008 07:52:58 +0000 (08:52 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 23 Mar 2009 22:38:04 +0000 (23:38 +0100)
commitd7001198366bffce4506ba21b7b0fee2de194f73
treed6fc12a93c413fc913b2652fc51a0f0d5265787b
parentd56ffd38a93841a07c839a375049a56b51e9567c
MIPS: Fix oops in dma_unmap_page on not coherent mips platforms

dma_cache_wback_inv() expects virtual address, but physical was provided
due to translation via plat_dma_addr_to_phys().
If replaced with dma_addr_to_virt(), page fault oops from dma_unmap_page()
is gone on au1550 platform.

Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.com>
Acked-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/dma-default.c