drm/exynos: Disable unused crtc planes from crtc
authorSean Paul <seanpaul@chromium.org>
Thu, 30 Jan 2014 21:19:17 +0000 (16:19 -0500)
committerInki Dae <daeinki@gmail.com>
Sun, 23 Mar 2014 15:36:33 +0000 (00:36 +0900)
commita9c4cd21390652c5eb473417bb962d20e372da03
tree065a335e9a6f00011141ce8114e68c887f557bee
parent75626853a7a00633f24def1039df5aa55d051091
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