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

Commit 2103ce58 authored by Rajeev Nandan's avatar Rajeev Nandan
Browse files

disp: msm: sde: fix panel early event blank notifier call



If trusted vm is disabled, the DRM_PANEL_EARLY_EVENT_BLANK
notifier does not get called because of this touch early
suspend does not happen which leads to continuous touch
i2c transfer failure during suspend.

Change-Id: I6abaacb9f8343eec24d5642f7eda9e7c410fd8b7
Signed-off-by: default avatarRajeev Nandan <rajeevny@codeaurora.org>
parent 1c5beba3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1165,10 +1165,12 @@ static void sde_kms_prepare_commit(struct msm_kms *kms,

	vm_ops = sde_vm_get_ops(sde_kms);
	if (!vm_ops)
		goto end;
		goto end_vm;

	if (vm_ops->vm_prepare_commit)
		vm_ops->vm_prepare_commit(sde_kms, state);

end_vm:
	_sde_kms_drm_check_dpms(state, DRM_PANEL_EARLY_EVENT_BLANK);
end:
	SDE_ATRACE_END("prepare_commit");