summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorChintan Pandya <cpandya@codeaurora.org>2015-09-04 17:44:37 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:45:54 -0700
commit93a0f575cba3c064e58719014c27213b11846a2d (patch)
tree95b81e614aac02b481ef69543345cfcbe3b9a065 /drivers/gpu/drm
parent605d27a6a2276279de22c11be74c06d3868d51c5 (diff)
iommu: Use proper bus for domain allocation in client drivers
When there are multiple IOMMU drivers in the system, each one will be sitting on different busses. This way, clients should be choosing the right bus to declare their domain on. Once and for all, update all the clients code to use proper bus abstraction API msm_iommu_get_bus() to get right bus. Change-Id: I5edf7037e7b1e4af6a559b6aeaa0b6de0976bf35 Signed-off-by: Chintan Pandya <cpandya@codeaurora.org> [cip@codeaurora.org: Removed changes to drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c, drivers/media/platform/msm/camera_v2/common/cam_smmu_api.c, drivers/media/platform/msm/vidc/venus_boot.c, drivers/platform/msm/ipa/ipa_v2/ipa.c, drivers/platform/msm/ipa/ipa_v3/ipa.c, drivers/platform/msm/msm_11ad/msm_11ad.c] Signed-off-by: Clarence Ip <cip@codeaurora.org>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c
index 077f7521a971..f0f66ac4b2fb 100644
--- a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c
+++ b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c
@@ -561,7 +561,7 @@ static struct mdp4_platform_config *mdp4_get_config(struct platform_device *dev)
#ifdef CONFIG_OF
/* TODO */
config.max_clk = 266667000;
- config.iommu = iommu_domain_alloc(&platform_bus_type);
+ config.iommu = iommu_domain_alloc(msm_iommu_get_bus(&dev->dev));
#else
if (cpu_is_apq8064())
config.max_clk = 266667000;