ARM: 8398/1: arm DMA: Fix allocation from CMA for coherent DMA
authorLorenzo Nava <lorenx4@gmail.com>
Thu, 2 Jul 2015 16:28:03 +0000 (17:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 4 Aug 2015 15:16:21 +0000 (16:16 +0100)
commit21caf3a765b0a88f8fedf63b36e5d15683b73fe5
tree98536a516686bbf3a717e47955cc1c8b2af251a4
parent1234e3fda9aa24b2d650bbcd9ef09d5f6a12dc86
ARM: 8398/1: arm DMA: Fix allocation from CMA for coherent DMA

This patch allows the use of CMA for DMA coherent memory allocation.
At the moment if the input parameter "is_coherent" is set to true
the allocation is not made using the CMA, which I think is not the
desired behaviour.
The patch covers the allocation and free of memory for coherent
DMA.

Signed-off-by: Lorenzo Nava <lorenx4@gmail.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c