drm/exynos: Disable unused crtc planes from crtc
authorSean Paul <seanpaul@chromium.org>
Thu, 30 Jan 2014 21:19:17 +0000 (16:19 -0500)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:28:48 +0000 (07:28 +0200)
commita2e891be4c1325b485d29cbcfed3a207cdf42e1e
tree8dc17d704065c907090c47dd98b5a51817ac4a88
parent4157b95769d832c16b9500e7d4624fd2fe92f7ee
drm/exynos: Disable unused crtc planes from crtc

This patch moves the code which disables unused crtc planes from the
encoder to the crtc. Since there is a 1:1 encoder/crtc mapping in
exynos, the only valid crtc change the pre-existing code could catch is
disconnecting an active crtc from the encoder. Thus it is functionally
equivalent to just disable all planes attached to a crtc when the crtc
is disabled.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_crtc.c
drivers/gpu/drm/exynos/exynos_drm_encoder.c