diff options
| author | Clarence Ip <cip@codeaurora.org> | 2017-03-16 11:04:53 -0400 |
|---|---|---|
| committer | Clarence Ip <cip@codeaurora.org> | 2017-07-21 10:59:20 -0400 |
| commit | 081178b8fd7bbeb104c52670d6251fbb39b58527 (patch) | |
| tree | 2c5ce322b7183141be22c4a74b1cecb6fb26b57a /drivers/gpu | |
| parent | 864edc591c38231442838580c101a6f4f601ae0f (diff) | |
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>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/msm/sde/sde_crtc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_crtc.c b/drivers/gpu/drm/msm/sde/sde_crtc.c index 4110f8c915b8..725ff0092c36 100644 --- a/drivers/gpu/drm/msm/sde/sde_crtc.c +++ b/drivers/gpu/drm/msm/sde/sde_crtc.c @@ -1034,6 +1034,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). */ |
