Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5473cd26 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm/sde: remove invalid error logs from msm drm



Certain smmu context banks are optional and won't be
available on all display hardware revision. Each display
hardware revision will provide the supported smmu cb
information in dtsi and drm driver can probe them. This
patch removes unnecessary error messages from msm
drm driver probe sequence.

Change-Id: If554c32630f7c29dcfc5cb18d3302a54bcdb9c53
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent c9e440da
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -315,10 +315,10 @@ static struct device *msm_smmu_device_create(struct device *dev,
	}

	if (!compat) {
		DRM_ERROR("unable to find matching domain for %d\n", domain);
		DRM_DEBUG("unable to find matching domain for %d\n", domain);
		return ERR_PTR(-ENOENT);
	}
	DRM_INFO("found domain %d compat: %s\n", domain, compat);
	DRM_DEBUG("found domain %d compat: %s\n", domain, compat);

	if (domain == MSM_SMMU_DOMAIN_UNSECURE) {
		int rc;
@@ -343,7 +343,7 @@ static struct device *msm_smmu_device_create(struct device *dev,

	child = of_find_compatible_node(dev->of_node, NULL, compat);
	if (!child) {
		DRM_ERROR("unable to find compatible node for %s\n", compat);
		DRM_DEBUG("unable to find compatible node for %s\n", compat);
		return ERR_PTR(-ENODEV);
	}

+2 −2
Original line number Diff line number Diff line
@@ -998,8 +998,8 @@ static int _sde_kms_mmu_init(struct sde_kms *sde_kms)
		mmu = msm_smmu_new(sde_kms->dev->dev, i);
		if (IS_ERR(mmu)) {
			ret = PTR_ERR(mmu);
			SDE_ERROR("failed to init iommu id %d: rc: %d\n", i,
					ret);
			SDE_DEBUG("failed to init iommu id %d: rc:%d\n",
								i, ret);
			continue;
		}