Re: [PATCH v1 2/2] dma: Add IOMMU static calls with clear default ops

Christoph Hellwig
2024-07-17T08:21:49Z

dma_is_default_iommu still looks a bit odd to me - basically we have
the ops structure just to say to bypass it. Why not add a single-bit
dma_iommu field to struct device next to dma_ops_bypass to skip it?
Then IOMMU_DMA also does not need to select DMA_OPS any more, which
would be kinda silly with the direct calls.