]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/tegra: Shutdown on driver unbind
authorThierry Reding <treding@nvidia.com>
Sun, 18 Mar 2018 00:13:39 +0000 (01:13 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit9270914fc169e83c6dd202da0c39a9b34036f5a7
treec9969bea5c81eaf8d462a14dbe40e92778393487
parent2e82a47d8dd5915b5b082807f96089632094d593
drm/tegra: Shutdown on driver unbind

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 192b4af6cd28cdad9b42fd79c21a90a2aeb0bec7 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/tegra/drm.c