]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: dmabounce: move decision for bouncing into __dma_map_page()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 21:39:43 +0000 (22:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 22:28:31 +0000 (23:28 +0100)
commitdd3641fc3cf6d10b7cf4e266c2f651517779e727
tree2f6a90b735f26aeaea94ace887f8576bebbb2b30
parent23bc9873ba60ee661d8e9f3a6b22fc3bcc4b7015
ARM: dmabounce: move decision for bouncing into __dma_map_page()

Move the decision whether to bounce into __dma_map_page(), before
the check for high pages.  This avoids triggering the high page
check for devices which aren't using dmabounce.  Fix the unmap path
to cope too.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/dmabounce.c