[PATCH] ARM: dma-mapping: Clear DMA ops on teardown

2019-01-21 Thread Robin Murphy
Installing the appropriate non-IOMMU DMA ops in arm_iommu_detch_device() serves the case where IOMMU-aware drivers choose to control their own mapping but still make DMA API calls, however it also affects the case when the arch code itself tears down the mapping upon driver unbinding, where the ops

Re: [PATCH] ARM: dma-mapping: Clear DMA ops on teardown

2019-01-21 Thread Thierry Reding
On Mon, Jan 21, 2019 at 02:52:16PM +, Robin Murphy wrote: > Installing the appropriate non-IOMMU DMA ops in arm_iommu_detch_device() > serves the case where IOMMU-aware drivers choose to control their own > mapping but still make DMA API calls, however it also affects the case > when the arch c

Re: [PATCH] ARM: dma-mapping: Clear DMA ops on teardown

2019-02-04 Thread Marek Szyprowski
Hi Robin, On 2019-01-21 15:52, Robin Murphy wrote: > Installing the appropriate non-IOMMU DMA ops in arm_iommu_detch_device() > serves the case where IOMMU-aware drivers choose to control their own > mapping but still make DMA API calls, however it also affects the case > when the arch code itself