]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerCatalin Marinas <catalin.marinas@arm.com>
Sat, 3 May 2014 21:20:34 +0000 (22:20 +0100)
commita7b3c72d5620b7356b772b45e5ebf2bec92cf04b
tree930af6e7dfff301c121e59f91171ab884c9ceb75
parent5fc850ecdd493df3dc213c74a170b2e8133b1724
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>
arch/arm64/kernel/setup.c
arch/arm64/mm/dma-mapping.c