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

Commit 081178b8 authored by Clarence Ip's avatar Clarence Ip
Browse files

drm/msm/sde: dispatch suspend/resume notification to cp



This change enables the appropriate callbacks to the color
processing component on suspend/resume transitions.

CRs-Fixed: 2019307
Change-Id: I7b8c9eb2b32da42e36d32e9d88e74e0c0c7b1ecb
Signed-off-by: default avatarClarence Ip <cip@codeaurora.org>
parent 864edc59
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1033,6 +1033,14 @@ static void _sde_crtc_set_suspend(struct drm_crtc *crtc, bool enable)

	mutex_lock(&sde_crtc->crtc_lock);

	/*
	 * Update CP on suspend/resume transitions
	 */
	if (enable && !sde_crtc->suspend)
		sde_cp_crtc_suspend(crtc);
	else if (!enable && sde_crtc->suspend)
		sde_cp_crtc_resume(crtc);

	/*
	 * If the vblank refcount != 0, release a power reference on suspend
	 * and take it back during resume (if it is still != 0).