mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
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>
This commit is contained in:
parent
6545f31897
commit
c4e074074c
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ static int exynos_crtc_atomic_check(struct drm_crtc *crtc,
|
||||||
{
|
{
|
||||||
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
|
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
|
||||||
|
|
||||||
|
if (!state->enable)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (exynos_crtc->ops->atomic_check)
|
if (exynos_crtc->ops->atomic_check)
|
||||||
return exynos_crtc->ops->atomic_check(exynos_crtc, state);
|
return exynos_crtc->ops->atomic_check(exynos_crtc, state);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue