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

Commit 545f545f authored by Xu Yang's avatar Xu Yang Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: move AD4 to idle state when device suspend



Move AD4 to idle state when device suspend. Change enforces
AD4 initial strength to be 0 after device resume.

Change-Id: I5fc486900b7bb38604d482a3418ef3b90a460f2a
Signed-off-by: default avatarXu Yang <yangxu@codeaurora.org>
parent 3737f09a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1176,6 +1176,7 @@ void sde_cp_crtc_suspend(struct drm_crtc *crtc)
{
	struct sde_crtc *sde_crtc = NULL;
	struct sde_cp_node *prop_node = NULL, *n = NULL;
	bool ad_suspend = false;

	if (!crtc) {
		DRM_ERROR("crtc %pK\n", crtc);
@@ -1198,8 +1199,12 @@ void sde_cp_crtc_suspend(struct drm_crtc *crtc)
				 active_list) {
		sde_cp_update_list(prop_node, sde_crtc, true);
		list_del_init(&prop_node->active_list);
		ad_suspend = true;
	}
	mutex_unlock(&sde_crtc->crtc_cp_lock);

	if (ad_suspend)
		sde_cp_ad_set_prop(sde_crtc, AD_SUSPEND);
}

void sde_cp_crtc_resume(struct drm_crtc *crtc)