aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-12-20 08:51:34 +1000
committerDave Airlie <airlied@redhat.com>2015-12-20 08:51:34 +1000
commit1957d62c29be413d77da2e69737f4251e5449fbd (patch)
tree22488a4c08adf182091fbad9a8e1d071cf70e251
parentMerge branch 'linux-4.4' of git://github.com/skeggsb/linux into drm-fixes (diff)
parentdrm/exynos: atomic check only enabled crtc states (diff)
downloadlinux-dev-1957d62c29be413d77da2e69737f4251e5449fbd.tar.xz
linux-dev-1957d62c29be413d77da2e69737f4251e5449fbd.zip
Merge branch 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-fixes
just one regression fix. * 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos: drm/exynos: atomic check only enabled crtc states
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_crtc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
index b3ba27fd9a6b..e69357172ffb 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
@@ -55,6 +55,9 @@ static int exynos_crtc_atomic_check(struct drm_crtc *crtc,
{
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
+ if (!state->enable)
+ return 0;
+
if (exynos_crtc->ops->atomic_check)
return exynos_crtc->ops->atomic_check(exynos_crtc, state);