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

Commit fdd7a906 authored by Govinda Rajulu Chenna's avatar Govinda Rajulu Chenna
Browse files

drm/msm/sde: configure intf_te vsync_in_en for sde 5.0.0



Fix the intf_te vsync_in_en program issue for sde 5.0.0.
This change fixes the frame transfer timeout errors for
command mode panels.

Change-Id: I7badaa48a7edac7ff781b0a9ede1878e1c8cae0a
Signed-off-by: default avatarGovinda Rajulu Chenna <gchenna@codeaurora.org>
parent 475ad2b7
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1024,18 +1024,20 @@ static bool sde_encoder_phys_cmd_is_autorefresh_enabled(
static void sde_encoder_phys_cmd_connect_te(
		struct sde_encoder_phys *phys_enc, bool enable)
{
	if (!phys_enc || !phys_enc->hw_pp || !phys_enc->hw_intf ||
			!phys_enc->hw_pp->ops.connect_external_te)
	if (!phys_enc || !phys_enc->hw_pp || !phys_enc->hw_intf)
		return;

	SDE_EVT32(DRMID(phys_enc->parent), enable);

	if (phys_enc->has_intf_te)
	if (phys_enc->has_intf_te &&
			phys_enc->hw_intf->ops.connect_external_te)
		phys_enc->hw_intf->ops.connect_external_te(phys_enc->hw_intf,
				enable);
	else
	else if (phys_enc->hw_pp->ops.connect_external_te)
		phys_enc->hw_pp->ops.connect_external_te(phys_enc->hw_pp,
				enable);
	else
		return;

	SDE_EVT32(DRMID(phys_enc->parent), enable);
}

static int sde_encoder_phys_cmd_te_get_line_count(