summaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-03-24 23:47:45 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-03-24 23:47:45 +0100
commitfbf2b1f9cfdb4e4b5d042839142ed19ff5d46679 (patch)
tree3a17c02aa0cf9bdbed9aa479739974aa2416ecac /arch/arm/common
parentMerge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/... (diff)
parent[ARM] add CONFIG_HIGHMEM option (diff)
downloadlinux-fbf2b1f9cfdb4e4b5d042839142ed19ff5d46679.tar.xz
linux-fbf2b1f9cfdb4e4b5d042839142ed19ff5d46679.zip
Merge branch 'highmem' into devel
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/dmabounce.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c
index f030f0775be7..734ac9135998 100644
--- a/arch/arm/common/dmabounce.c
+++ b/arch/arm/common/dmabounce.c
@@ -25,6 +25,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
+#include <linux/page-flags.h>
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/dmapool.h>
@@ -349,6 +350,12 @@ dma_addr_t dma_map_page(struct device *dev, struct page *page,
BUG_ON(!valid_dma_direction(dir));
+ if (PageHighMem(page)) {
+ dev_err(dev, "DMA buffer bouncing of HIGHMEM pages "
+ "is not supported\n");
+ return ~0;
+ }
+
return map_single(dev, page_address(page) + offset, size, dir);
}
EXPORT_SYMBOL(dma_map_page);