arm: introduce is_device_dma_coherent
commit3d5391ac6f5e3cb1ab01e23851140d3f6e9ab573
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 20 Nov 2014 10:41:40 +0000 (20 10:41 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 4 Dec 2014 12:41:50 +0000 (4 12:41 +0000)
tree314da191fca5fec9ec2703e5ba00b0e09566b7b4
parentde7ee503f279c1b454941802972bb9467e3e5749
arm: introduce is_device_dma_coherent

Introduce a boolean flag and an accessor function to check whether a
device is dma_coherent. Set the flag from set_arch_dma_coherent_ops.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Russell King <linux@arm.linux.org.uk>
arch/arm/include/asm/device.h
arch/arm/include/asm/dma-mapping.h