Re: [RFC PATCH v2 2/7] dma-mapping: replace set_arch_dma_coherent_ops with arch_setup_dma_ops

2014-09-09 Thread Grygorii Strashko
Hi Will, On 09/08/2014 01:31 PM, Will Deacon wrote: On Fri, Sep 05, 2014 at 04:37:41PM +0100, Grygorii Strashko wrote: On 09/02/2014 08:56 PM, Will Deacon wrote: set_arch_dma_coherent_ops is called from of_dma_configure in order to swizzle the architectural dma-mapping functions over to a

Re: [RFC PATCH v2 2/7] dma-mapping: replace set_arch_dma_coherent_ops with arch_setup_dma_ops

2014-09-08 Thread Will Deacon
On Fri, Sep 05, 2014 at 04:37:41PM +0100, Grygorii Strashko wrote: Hi Will, Hi Grygorii, On 09/02/2014 08:56 PM, Will Deacon wrote: set_arch_dma_coherent_ops is called from of_dma_configure in order to swizzle the architectural dma-mapping functions over to a cache-coherent

[RFC PATCH v2 2/7] dma-mapping: replace set_arch_dma_coherent_ops with arch_setup_dma_ops

2014-09-02 Thread Will Deacon
set_arch_dma_coherent_ops is called from of_dma_configure in order to swizzle the architectural dma-mapping functions over to a cache-coherent implementation. This is currently implemented only for ARM. In anticipation of re-using this mechanism for IOMMU-backed dma-mapping ops too, this patch