Re: [RFC PATCH 4/5] iommu/dma: Export non-static functions to use in modules
From: Christoph Hellwig
Date: Thu Jul 06 2017 - 10:10:51 EST
On Thu, Jul 06, 2017 at 12:09:45PM +0100, Robin Murphy wrote:
> I suppose another option is to just make the IOMMU and DMA ops a
> self-contained non-modular driver mirroring the VT-d/AMD-Vi IOMMUs -
> AFAICS it shouldn't have to be all that tightly coupled to the IPU bus
> code, the latter more or less just needs to create the appropriate IOMMU
> device for the driver to find.
I still haven't seen the driver code, but this seems to be best
solution so far. Given that it's not a plug in device but part of
an SOC that seems perfectly acceptable to me.