drm/exynos/decon5433: do not use unnecessary software trigger
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 29 Apr 2016 13:42:48 +0000 (15:42 +0200)
committerInki Dae <daeinki@gmail.com>
Tue, 10 May 2016 14:11:40 +0000 (23:11 +0900)
Software trigger should not be used if hardware trigger is configured.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c

index cb6519b49f23064cbf346464dfb1857e1f81d101..737b8b3ad350477f070b7c17a1c8f1062ec81e94 100644 (file)
@@ -434,7 +434,8 @@ static void decon_te_irq_handler(struct exynos_drm_crtc *crtc)
 {
        struct decon_context *ctx = crtc->ctx;
 
-       if (!test_bit(BIT_CLKS_ENABLED, &ctx->flags))
+       if (!test_bit(BIT_CLKS_ENABLED, &ctx->flags) ||
+           (ctx->out_type & I80_HW_TRG))
                return;
 
        if (test_and_clear_bit(BIT_WIN_UPDATED, &ctx->flags))