iommu/amd: Set AMD iommu callbacks for platform bus driver
authorWan Zongshun <Vincent.Wan@amd.com>
Tue, 10 May 2016 13:21:01 +0000 (09:21 -0400)
committerJoerg Roedel <jroedel@suse.de>
Wed, 15 Jun 2016 10:00:10 +0000 (12:00 +0200)
commit0076cd3d063a43f69eba2d0a1d13927897c8ed35
tree61aa18577cce2a4417fb2ee609b3a093ec4d7b6f
parent5edb56491d4812c42175980759da53388e5d86f5
iommu/amd: Set AMD iommu callbacks for platform bus driver

AMD has more drivers will use ACPI to platform bus driver later,
all those devices need iommu support, for example: eMMC driver.

For latest AMD eMMC controller, it will utilize sdhci-acpi.c driver,
which will rely on platform bus to match device and driver, where we
will set 'dev' of struct platform_device as map_sg parameter passing
to iommu driver for DMA request, so the iommu-ops are needed on the
platform bus.

Signed-off-by: Wan Zongshun <Vincent.Wan@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c