]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: DPMS off/on in encoder prepare/commit
authorSean Paul <seanpaul@chromium.org>
Wed, 29 Oct 2014 19:33:35 +0000 (15:33 -0400)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 15:12:04 +0000 (16:12 +0100)
commitcfb171b0fe9cc1bd8e60f3cf4223a58b3296a5d7
tree98805a12fc8014158c4d660e4c1b7546ae028a19
parent0a178a3c5a4e19202f341c7ea216151f1dc3343f
drm/tegra: DPMS off/on in encoder prepare/commit

Previously the panel and output were only enabled on encoder->dpms(). If
userspace called dpms on before doing a modeset, the driver would get into
a state where the connector had a dpms state of ON, but the encoder and output
were not enabled (because the encoder is not yet attached to the connector).
Subsequent dpms ON calls are ignored b/c the connector's state already matches
the desired state.

This patch enables/disables the panel and output on modeset as well, so we
can catch the above case.

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