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

Commit 609ff236 authored by Lloyd Atkinson's avatar Lloyd Atkinson Committed by Steve Cohen
Browse files

drm/msm/sde: cancel vsync event timer on encoder stop



Stop the VSYNC event timer when the encoder transitions to the
disabled state.

Change-Id: I7e6ce3278e0b017ae8fb9c5195152d798c67a0b1
Signed-off-by: default avatarLloyd Atkinson <latkinso@codeaurora.org>
parent 53b3cf65
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1883,8 +1883,9 @@ static int sde_encoder_resource_control(struct drm_encoder *drm_enc,
		break;

	case SDE_ENC_RC_EVENT_STOP:
		/* cancel vsync event work */
		/* cancel vsync event work and timer */
		kthread_cancel_work_sync(&sde_enc->vsync_event_work);
		del_timer_sync(&sde_enc->vsync_event_timer);

		mutex_lock(&sde_enc->rc_lock);
		/* return if the resource control is already in OFF state */