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

Commit 020b7002 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm/sde: remove thread flush request for same thread



Input event work is scheduled on crtc_commit thread and
encoder disable API tries to flush the input work. This
can cause deadlock to crtc_commit thread because it may
wait for pending job on its own thread. Fix this deadlock
by removing the flush_kthread API call.

Change-Id: I39cb4249edf36cbc27bbad9726c52613e83eff0f
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 1943573b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3038,8 +3038,6 @@ static void sde_encoder_virt_disable(struct drm_encoder *drm_enc)
	/* wait for idle */
	sde_encoder_wait_for_event(drm_enc, MSM_ENC_TX_COMPLETE);

	kthread_flush_work(&sde_enc->input_event_work);

	if (sde_enc->input_handler)
		input_unregister_handler(sde_enc->input_handler);