summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorLloyd Atkinson <latkinso@codeaurora.org>2017-01-10 10:34:36 -0500
committerLloyd Atkinson <latkinso@codeaurora.org>2017-01-20 10:39:41 -0500
commitf4d39366864605584adc0686b129ec83da544ba3 (patch)
tree11db46f1b99ab53b70162a0896cef29346656cf4 /drivers/gpu
parent6ce359fca39ceb6f70c9b1ff40e652934e75435a (diff)
drm/msm/sde: allow mmus to be optional during kms init
Fix to avoid failing overall drm sde driver initialization in case one of the mmus expected is not defined by DTSI. Particular MMU support varies by platform and can be optional. Change-Id: I07162d1d064c9cc025ec494e83e1dfa7f14f65c1 Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/msm/sde/sde_kms.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_kms.c b/drivers/gpu/drm/msm/sde/sde_kms.c
index 6c64d72e8262..afe90d16e31d 100644
--- a/drivers/gpu/drm/msm/sde/sde_kms.c
+++ b/drivers/gpu/drm/msm/sde/sde_kms.c
@@ -964,10 +964,11 @@ static int _sde_kms_mmu_init(struct sde_kms *sde_kms)
for (i = 0; i < MSM_SMMU_DOMAIN_MAX; i++) {
mmu = msm_smmu_new(sde_kms->dev->dev, i);
if (IS_ERR(mmu)) {
+ /* MMU's can be optional depending on platform */
ret = PTR_ERR(mmu);
- SDE_ERROR("failed to init iommu id %d: rc: %d\n", i,
+ DRM_INFO("failed to init iommu id %d: rc: %d\n", i,
ret);
- goto fail;
+ continue;
}
ret = mmu->funcs->attach(mmu, (const char **)iommu_ports,