From 2b7afb824333de5bb94105fc044a75679d02e810 Mon Sep 17 00:00:00 2001 From: Andrzej Hajda Date: Tue, 9 Aug 2016 11:07:47 +0200 Subject: [PATCH] Revert "drm/exynos/decon5433: wait for two vblanks before framebuffer removal" Since previous patch fixes strange DECON behavior we do not need to wait for two vblanks before freeing buffers. This reverts commit 661aaf94623c1de5d96503aaefdfae4b9105cb1a. Change-Id: I3cbd68f9af5748f74c5a878de34b6b531aa26075 Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index e3cc259..e3a2794 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -94,7 +94,7 @@ static void decon_wait_for_vblank(struct exynos_drm_crtc *crtc) if (ctx->suspended) return; - atomic_set(&ctx->wait_vsync_event, 2); + atomic_set(&ctx->wait_vsync_event, 1); /* * wait for FIMD to signal VSYNC interrupt or return after @@ -667,7 +667,7 @@ static void decon_clear_channel(struct decon_context *ctx) decon_update(ctx); - atomic_set(&ctx->wait_vsync_event, 2); + atomic_set(&ctx->wait_vsync_event, 1); /* * wait for FIMD to signal VSYNC interrupt or return after @@ -762,7 +762,7 @@ static irqreturn_t decon_irq_handler(int irq, void *dev_id) out: if (atomic_read(&ctx->wait_vsync_event)) { - atomic_dec_if_positive(&ctx->wait_vsync_event); + atomic_set(&ctx->wait_vsync_event, 0); wake_up(&ctx->wait_vsync_queue); } -- 2.7.4