]> git.baikalelectronics.ru Git - kernel.git/commit
sh: declared coherent memory support V2 fix
authorMagnus Damm <magnus.damm@gmail.com>
Fri, 25 Jan 2008 03:42:48 +0000 (12:42 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 14 Feb 2008 05:22:07 +0000 (14:22 +0900)
commit2cacf87b18403ddf9c7b7e865ef5b618a6a4c2cc
treeac201b3def115a6c695b317a968743a28bf86681
parentfa3184973311af8f07f34b763764f6d28386018e
sh: declared coherent memory support V2 fix

This patch fixes the recently introduced declared coherent memory support.
Without this fix a cached memory area is returned by dma_alloc_coherent() -
unless dma_declare_coherent_memory() has setup a separate area.

This patch makes sure an uncached memory area is returned. With this patch
it is now possible to ping through an rtl8139 interface on r2d-plus.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/consistent.c