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

Commit 79fa5e58 authored by Yashwanth's avatar Yashwanth
Browse files

disp: msm: sde: force toggle gdsc during pd disable



During crtc_disable, gdsc toggle will not happen if
external vote is present. The current detection of external
vote might not result in gdsc toggle if there is a delay
in removing the genpd vote from rotator. This change
adds additional external vote check to handle such
scenarios.

Change-Id: I1bed408b13180703bfccffe40f5a1be2280645c7
Signed-off-by: default avatarYashwanth <yvulapu@codeaurora.org>
parent 20c1e5e6
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -3315,6 +3315,7 @@ static int sde_kms_pd_enable(struct generic_pm_domain *genpd)
static int sde_kms_pd_disable(struct generic_pm_domain *genpd)
static int sde_kms_pd_disable(struct generic_pm_domain *genpd)
{
{
	struct sde_kms *sde_kms = genpd_to_sde_kms(genpd);
	struct sde_kms *sde_kms = genpd_to_sde_kms(genpd);
	struct msm_drm_private *priv;


	SDE_DEBUG("\n");
	SDE_DEBUG("\n");


@@ -3322,6 +3323,9 @@ static int sde_kms_pd_disable(struct generic_pm_domain *genpd)


	SDE_EVT32(genpd->device_count);
	SDE_EVT32(genpd->device_count);


	priv = sde_kms->dev->dev_private;
	sde_kms_check_for_ext_vote(sde_kms, &priv->phandle);

	return 0;
	return 0;
}
}