OSDN Git Service

iommu: add new iommu_ops callback for adding an OF device
authorWill Deacon <will.deacon@arm.com>
Wed, 27 Aug 2014 15:15:59 +0000 (16:15 +0100)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:42 +0000 (11:14 -0700)
commitcc1a363f31974369ff48c69eae4a5f609fd9d235
tree2ada189f5ae1040537091c72ee6df3544a3046ee
parent452eb9f1aa8bb5d421a659c3393aa6a8cfd758fd
iommu: add new iommu_ops callback for adding an OF device

This patch adds a new function to the iommu_ops structure to allow an
OF device to be added to a specific IOMMU instance using the recently
merged generic devicetree binding for IOMMUs. The callback (of_xlate)
takes a struct device representing the master and an of_phandle_args
representing the IOMMU and the correspondong IDs for the new master.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Joerg Roedel <jroedel@suse.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/linux/iommu.h