]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Enable the hotplug interrupt only when necessary
authorThierry Reding <treding@nvidia.com>
Tue, 21 Oct 2014 12:00:09 +0000 (14:00 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 15:18:31 +0000 (16:18 +0100)
commitf57e2cb992b5cebadf7b79adfe6dc919435bca16
treef1d74b944c4205cd3941e4507d4aeb484f186718
parent64dfa4f6c11086d3c888729de1727fad6ede79a8
drm/tegra: Enable the hotplug interrupt only when necessary

The hotplug handling needs access to the DRM device, which only appears
at ->init() time. Disable interrupts up until that time. Similarly, when
an output is removed, disable the hotplug interrupt again because the
DRM device (and with it the hotplug infrastructure) is going away.

Also make sure to only access the DRM device if it's available. Given
the above change for the hotplug interrupt this should really never
happen, but the extra check doesn't hurt either.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/output.c