diff mbox

drm/exynos: fix overlay updating issue

Message ID 1352895107-16412-1-git-send-email-inki.dae@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Inki Dae Nov. 14, 2012, 12:11 p.m. UTC
This patch fixes a issue that overlay data aren't applied
to real hardware when dpms off goes to on after setcrtc
was requested like below,
    dpms off -> setcrtc -> dpms off -> dpms on

For this, it makes encoder's dpms to be updated when
setcrtc is requested.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_encoder.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
index 241ad1e..d971c95 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
@@ -423,6 +423,8 @@  void exynos_drm_encoder_crtc_dpms(struct drm_encoder *encoder, void *data)
 		if (!encoder->crtc)
 			manager->pipe = -1;
 	}
+
+	exynos_encoder->dpms = mode;
 }
 
 void exynos_drm_encoder_crtc_pipe(struct drm_encoder *encoder, void *data)