[RFC PATCH v2 7/7] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops

Arnd Bergmann arnd at arndb.de
Tue Sep 2 11:14:24 PDT 2014


On Tuesday 02 September 2014 18:56:27 Will Deacon wrote:
> This patch plumbs the existing ARM IOMMU DMA infrastructure (which isn't
> actually called outside of a few drivers) into arch_setup_dma_ops, so
> that we can use IOMMUs for DMA transfers in a more generic fashion.
> 
> Since this significantly complicates the arch_setup_dma_ops function,
> it is moved out of line into dma-mapping.c. If CONFIG_ARM_DMA_USE_IOMMU
> is not set, the iommu paramater is ignored and the normal ops are used
> instead.
> 
> Signed-off-by: Will Deacon <will.deacon at arm.com>
> 

Looks great to me.

	Arnd



More information about the linux-arm-kernel mailing list