aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2015-08-15 12:26:11 -0400
committerInki Dae <daeinki@gmail.com>2015-08-30 11:27:36 -0400
commitfc75f7107a8de47e135cf3b9fec62f99c184a2c8 (patch)
treeb3dd3a932fa0b790413936a989beabbd702f955d
parentbb0fa93523b8d7f89b6ee61ab8e9b926ff7a9779 (diff)
drm/exynos: fimd: unify call to exynos_drm_crtc_finish_pageflip()
Unify handling of finished plane update to prepare for a following patch that will check for the START and START_S regs to really make sure that the plane was updated. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index 5def6bc073eb..30c1409702bb 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -896,15 +896,15 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id)
896 if (ctx->pipe < 0 || !ctx->drm_dev) 896 if (ctx->pipe < 0 || !ctx->drm_dev)
897 goto out; 897 goto out;
898 898
899 if (ctx->i80_if) { 899 if (!ctx->i80_if)
900 exynos_drm_crtc_finish_pageflip(ctx->crtc); 900 drm_crtc_handle_vblank(&ctx->crtc->base);
901
902 exynos_drm_crtc_finish_pageflip(ctx->crtc);
901 903
904 if (ctx->i80_if) {
902 /* Exits triggering mode */ 905 /* Exits triggering mode */
903 atomic_set(&ctx->triggering, 0); 906 atomic_set(&ctx->triggering, 0);
904 } else { 907 } else {
905 drm_crtc_handle_vblank(&ctx->crtc->base);
906 exynos_drm_crtc_finish_pageflip(ctx->crtc);
907
908 /* set wait vsync event to zero and wake up queue. */ 908 /* set wait vsync event to zero and wake up queue. */
909 if (atomic_read(&ctx->wait_vsync_event)) { 909 if (atomic_read(&ctx->wait_vsync_event)) {
910 atomic_set(&ctx->wait_vsync_event, 0); 910 atomic_set(&ctx->wait_vsync_event, 0);