From: Nicolas Pitre Date: Tue, 9 Sep 2008 19:54:13 +0000 (-0400) Subject: [ARM] make page_to_dma() highmem aware X-Git-Tag: v2.6.30-rc1~636^2~16^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58edb515724f9e63e569536d01ac8d8f8ddb367a;p=pandora-kernel.git [ARM] make page_to_dma() highmem aware If a machine class has a custom __virt_to_bus() implementation then it must provide a __arch_page_to_dma() implementation as well which is _not_ based on page_address() to support highmem. This patch fixes existing __arch_page_to_dma() and provide a default implementation otherwise. The default implementation for highmem is based on __pfn_to_bus() which is defined only when no custom __virt_to_bus() is provided by the machine class. That leaves only ebsa110 and footbridge which cannot support highmem until they provide their own __arch_page_to_dma() implementation. But highmem support on those legacy platforms with limited memory is certainly not a priority. Signed-off-by: Nicolas Pitre --- Reading git-diff-tree failed