]> git.baikalelectronics.ru Git - 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)
committerThierry Reding <treding@nvidia.com>
Mon, 19 Mar 2018 08:57:32 +0000 (09:57 +0100)
commitf14c70476e2067e7871c18edae91e9bd588f6076
treeda7c89573972d64198dc7236baa969add3667638
parentf00e1934282f51004eb9452a29b635757f307835
drm/tegra: Shutdown on driver unbind

Since commit 72a1b0f18165 ("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>
drivers/gpu/drm/tegra/drm.c