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

Commit cbbefd73 authored by Xu Yang's avatar Xu Yang
Browse files

drm/msm/sde: Change error log to info when device suspend



Change error message to info log when crtc is not attached
after device suspend. This is to pass the display post
processing automation test of device suspend and resume.

Change-Id: I6aa1e499c9ac5d98f37d4fbf223ebc7c7c72b4ec
Signed-off-by: default avatarXu Yang <yangxu@codeaurora.org>
parent 7e3149cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1028,7 +1028,7 @@ int sde_cp_crtc_set_property(struct drm_crtc *crtc,
	 */
	if (!sde_crtc->num_mixers ||
	    sde_crtc->num_mixers > ARRAY_SIZE(sde_crtc->mixers)) {
		DRM_ERROR("Invalid mixer config act cnt %d max cnt %ld\n",
		DRM_INFO("Invalid mixer config act cnt %d max cnt %ld\n",
			sde_crtc->num_mixers, ARRAY_SIZE(sde_crtc->mixers));
		ret = -EPERM;
		goto exit;
+11 −4
Original line number Diff line number Diff line
@@ -5229,12 +5229,19 @@ static int sde_crtc_atomic_set_property(struct drm_crtc *crtc,
	}

exit:
	if (ret)
		SDE_ERROR("%s: failed to set property%d %s: %d\n", crtc->name,
				DRMID(property), property->name, ret);
	if (ret) {
		if (ret != -EPERM)
			SDE_ERROR("%s: failed to set property%d %s: %d\n",
				crtc->name, DRMID(property),
				property->name, ret);
		else
			SDE_DEBUG("%s: failed to set property%d %s: %d\n",
				crtc->name, DRMID(property),
				property->name, ret);
	} else {
		SDE_DEBUG("%s: %s[%d] <= 0x%llx\n", crtc->name, property->name,
				property->base.id, val);
	}

	return ret;
}