diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2015-11-27 09:57:31 +0300 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2015-12-19 19:39:10 +0300 |
commit | c4e074074c142bb21b8c3283066d8e6c1fd2baba (patch) | |
tree | 22488a4c08adf182091fbad9a8e1d071cf70e251 /drivers/gpu/drm/exynos/exynos_drm_crtc.c | |
parent | 6545f3189707c9105fcf160c2da2ddd2dacca331 (diff) | |
download | linux-c4e074074c142bb21b8c3283066d8e6c1fd2baba.tar.xz |
drm/exynos: atomic check only enabled crtc states
Since atomic check is called also for disabled crtcs it should skip
mode checking as it can be uninitialized. The patch fixes it.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_crtc.c | 3 |
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); |