[RFC PATCH 4/7] iommu: provide helper function to configure an IOMMU for an of master

Arnd Bergmann arnd at arndb.de
Tue Sep 2 08:08:29 PDT 2014


On Tuesday 02 September 2014 15:03:14 Varun Sethi wrote:
> Hi Thierry/Will/Arnd,
> Where would the of_xlate callback reside and what would be its function? 
> 

It is an additional function pointer in iommu_ops and replaces the
add_device callback for IOMMUs that are DT-enabled.

The idea is that we can have a single function that sets up DMA
for the device properly, including iommus when they are configured,
and it lets us pass the necessary parameters describing the setup
of the master device into the iommu driver.

	Arnd



More information about the linux-arm-kernel mailing list