> +#if IS_ENABLED(CONFIG_ARM_DMA_USE_IOMMU)
> +     if (dev->archdata.mapping) {
> +             struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev);
> +
> +             arm_iommu_detach_device(dev);
> +             arm_iommu_release_mapping(mapping);
> +     }
> +#endif

Having this hidden in a helper would be nicer, but anything that
doesn't directly expose the dma_map_ops to a driver is fine with me.

So from the dma-mapping POV:

Acked-by: Christoph Hellwig <h...@lst.de>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to