]> Pileus Git - ~andy/linux/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)
commit2a3eeba88f935b200245d1536b99cd4b7eec1d4a
treeac201b3def115a6c695b317a968743a28bf86681
parente760e716d47b48caf98da348368fd41b4a9b9e7e
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