diff options
author | Chintan Pandya <cpandya@codeaurora.org> | 2015-09-04 17:44:37 +0530 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:45:54 -0700 |
commit | 93a0f575cba3c064e58719014c27213b11846a2d (patch) | |
tree | 95b81e614aac02b481ef69543345cfcbe3b9a065 /drivers/video | |
parent | 605d27a6a2276279de22c11be74c06d3868d51c5 (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/video')
-rw-r--r-- | drivers/video/fbdev/msm/mdss_smmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_smmu.c b/drivers/video/fbdev/msm/mdss_smmu.c index 8bb46fad7875..e129068a97e8 100644 --- a/drivers/video/fbdev/msm/mdss_smmu.c +++ b/drivers/video/fbdev/msm/mdss_smmu.c @@ -17,6 +17,7 @@ #include <linux/debugfs.h> #include <linux/kernel.h> #include <linux/iommu.h> +#include <linux/qcom_iommu.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/clk/msm-clk.h> @@ -583,7 +584,7 @@ int mdss_smmu_probe(struct platform_device *pdev) } mdss_smmu->mmu_mapping = arm_iommu_create_mapping( - &platform_bus_type, va_start, va_size); + msm_iommu_get_bus(dev), va_start, va_size); if (IS_ERR(mdss_smmu->mmu_mapping)) { pr_err("iommu create mapping failed for domain[%d]\n", domain); rc = PTR_ERR(mdss_smmu->mmu_mapping); |