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: Clarence Ip <cip@codeaurora.org>
This commit is contained in:
Clarence Ip 2017-03-16 11:04:53 -04:00
parent 864edc591c
commit 081178b8fd

View file

@ -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).