drm/tegra: Stop CRTC at CRTC disable time
authorThierry Reding <treding@nvidia.com>
Fri, 21 Nov 2014 16:35:54 +0000 (17:35 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 27 Jan 2015 09:14:43 +0000 (10:14 +0100)
commit36904adf217ab0755cc2ef3fa186e01fd07a2aca
tree1ffd1ca7a1ff78b5c4922a6a18b175fc6e52e501
parent62b9e06321a254c3039966cff831487498e831a5
drm/tegra: Stop CRTC at CRTC disable time

Previously output drivers would all stop the display controller in their
disable path. However with the transition to atomic modesetting the
display controller needs to be kept running until all planes have been
disabled so that software can properly determine (using VBLANK counts)
when it is safe to remove the framebuffers associated with the planes.

Moving this code into the display controller's disable path also gets
rid of the duplication of this into all output drivers.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/dsi.c
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/rgb.c
drivers/gpu/drm/tegra/sor.c