diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2016-08-02 14:40:24 +0900 |
---|---|---|
committer | Joonyoung Shim <jy0922.shim@samsung.com> | 2016-08-02 15:18:52 +0900 |
commit | 9a039d2ba331606e4bf0d07b743659614b98f6fc (patch) | |
tree | be342bbfd94a6cfd4c455ba9d77aa0180e943caf /drivers | |
parent | 3270b5c92507fe2a18dc9302487608c95b5531ad (diff) | |
download | linux-exynos-9a039d2ba331606e4bf0d07b743659614b98f6fc.tar.gz linux-exynos-9a039d2ba331606e4bf0d07b743659614b98f6fc.tar.bz2 linux-exynos-9a039d2ba331606e4bf0d07b743659614b98f6fc.zip |
drm/exynos/decon5433: just return if decon is disable in decon_commit()
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index 48233284d098..e22bc0fe98b0 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -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 */ |