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

Commit a508b4c7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: move AD4 to idle state when device suspend" into dev/msm-4.14-display

parents 394c559c 545f545f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line 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_crtc *sde_crtc = NULL;
	struct sde_cp_node *prop_node = NULL, *n = NULL;
	struct sde_cp_node *prop_node = NULL, *n = NULL;
	bool ad_suspend = false;


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