ARM: mm: fix MMU mapping of CMA regions
authorChris Brand <cbrand@broadcom.com>
Tue, 7 Aug 2012 12:01:14 +0000 (14:01 +0200)
committerHiroshi Doyu <hdoyu@nvidia.com>
Fri, 7 Sep 2012 08:46:12 +0000 (11:46 +0300)
commit5467579535d80729352db0186b684c6199f29575
treeb02784a9ca2924a20ac942a3fa81ac13139da07e
parent2711108b7e779d5454f1614ad39f51d9c23e4932
ARM: mm: fix MMU mapping of CMA regions

Fix dma_contiguous_remap() so that it continues through all the
regions, even after encountering one that is outside lowmem.
Without this change, if you have two CMA regions, the first outside
lowmem and the seocnd inside lowmem, only the second one will get
set up in the MMU. Data written to that region then doesn't get
automatically flushed from the cache into memory.

Signed-off-by: Chris Brand <cbrand@broadcom.com>
[extended patch subject with 'fix' word]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm/mm/dma-mapping.c