aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-03-18 01:13:39 +0100
committerThierry Reding <treding@nvidia.com>2018-03-19 09:57:32 +0100
commit192b4af6cd28cdad9b42fd79c21a90a2aeb0bec7 (patch)
treeda7c89573972d64198dc7236baa969add3667638 /drivers/gpu
parentdrm/tegra: dsi: Don't disable regulator on ->exit() (diff)
downloadlinux-dev-192b4af6cd28cdad9b42fd79c21a90a2aeb0bec7.tar.xz
linux-dev-192b4af6cd28cdad9b42fd79c21a90a2aeb0bec7.zip
drm/tegra: Shutdown on driver unbind
Since commit 846c7dfc1193 ("drm/atomic: Try to preserve the crtc enabled state in drm_atomic_remove_fb, v2."), removing the last framebuffer will no longer disable the corresponding pipeline, which causes the KMS core to complain about leaked connectors on driver unbind. Fix this by calling drm_atomic_helper_shutdown() on driver unbind, which will cause all display pipelines to be shut down and therefore drop the extra references on the connectors. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/tegra/drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index d50bddb2e447..7fcf4a242840 100644
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -250,6 +250,7 @@ static void tegra_drm_unload(struct drm_device *drm)
drm_kms_helper_poll_fini(drm);
tegra_drm_fb_exit(drm);
+ drm_atomic_helper_shutdown(drm);
drm_mode_config_cleanup(drm);
err = host1x_device_exit(device);