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

Commit 5c42eef1 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Steve Cohen
Browse files

drm/msm/sde: Avoid event notification for SDE power ON case



For command mode, events to user mode is currently doubled
as SDE_POWER_EVENT is giving both ON and OFF events, but
currently HAL has operations defined only for OFF event. As
ON will cause unnecessary event thread wake-ups, make changes
to notify only OFF.

Change-Id: Ic5ac261c41c2999f30a92608d92149362606a5f0
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 49ebced4
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -3978,12 +3978,6 @@ static void sde_crtc_handle_power_event(u32 event_type, void *arg)

		sde_cp_crtc_post_ipc(crtc);

		event.type = DRM_EVENT_SDE_POWER;
		event.length = sizeof(power_on);
		power_on = 1;
		msm_mode_object_event_notify(&crtc->base, crtc->dev, &event,
				(u8 *)&power_on);

		for (i = 0; i < sde_crtc->num_mixers; ++i) {
			m = &sde_crtc->mixers[i];
			if (!m->hw_lm || !m->hw_lm->ops.setup_misr ||