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

Commit 9992c57b authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: Prevent kthread off work initialization during dms



Kthread off work should be initialized only during resume, so add
necessary checks to avoid initialization during other cases.

Change-Id: Ic4f9935465481a06c27f7fbdaa81842369f7e3dc
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 47c0cf0c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2783,7 +2783,8 @@ static void sde_encoder_virt_enable(struct drm_encoder *drm_enc)
			sde_enc->input_handler_registered = true;
	}

	if (!msm_is_mode_seamless_vrr(cur_mode))
	if (!(msm_is_mode_seamless_vrr(cur_mode)
			|| msm_is_mode_seamless_dms(cur_mode)))
		kthread_init_delayed_work(&sde_enc->delayed_off_work,
			sde_encoder_off_work);