arm64: Use bus notifiers to set per-device coherent DMA ops
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 25 Apr 2014 14:31:45 +0000 (15:31 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 21 May 2014 18:13:44 +0000 (19:13 +0100)
commit6d08693da9e9512a6739c4a873c9f42d0c8d0f26
tree1d13948be218fcaefc7e58939eca24dc69a858a7
parent6b185a7d18246ecd52ce3da955fa589f6b8c99ec
arm64: Use bus notifiers to set per-device coherent DMA ops

Recently, the default DMA ops have been changed to non-coherent for
alignment with 32-bit ARM platforms (and DT files). This patch adds bus
notifiers to be able to set the coherent DMA ops (with no cache
maintenance) for devices explicitly marked as coherent via the
"dma-coherent" DT property.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 6ecba8eb51b7d23fda66388a5420be7d8688b186)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/kernel/setup.c
arch/arm64/mm/dma-mapping.c