Re: [RFC PATCH 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-09-01 Thread Arnd Bergmann
On Friday 29 August 2014 16:54:28 Will Deacon wrote: > static void of_dma_configure(struct platform_device *pdev) > { > - u64 dma_addr, paddr, size; > + u64 dma_addr, paddr, size, mask; > int ret; > - bool coherent; > + bool coherent, iommu; > unsigned long

[RFC PATCH 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-08-29 Thread Will Deacon
This patch extends of_dma_configure so that it sets up the IOMMU for a device, as well as the coherent/non-coherent DMA mapping ops. Signed-off-by: Will Deacon --- arch/arm/include/asm/dma-mapping.h | 4 +++- drivers/of/platform.c | 37 ++--- include