drm/exynos/decon5433: just return if decon is disable in decon_commit()
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 2 Aug 2016 05:40:24 +0000 (14:40 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:52:02 +0000 (13:52 +0900)
The decon_commit() can be called before decon is enabled if atomic
patches are applied at exynos drm, then it will cause kernel panic.
Already decon drm driver of mainline is considering this case.

Change-Id: I3f3b02ec71e7e928042561f1d35196fe5dfce643
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c

index 4823328..e22bc0f 100644 (file)
@@ -180,6 +180,9 @@ static void decon_commit(struct exynos_drm_crtc *crtc)
        bool interlaced = false;
        u32 val;
 
+       if (ctx->suspended)
+               return;
+
        decon_wait_for_update(ctx);
 
        /* enable clock gate */