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)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 2 Aug 2016 06:18:52 +0000 (15:18 +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 48233284d098e93015e20fe2465043f2d43c8f44..e22bc0fe98b028e74e49909be7d95c133a646189 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 */