drm/tegra: Start connectors with correct DPMS mode
authorThierry Reding <treding@nvidia.com>
Tue, 24 Sep 2013 07:58:08 +0000 (09:58 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 31 Oct 2013 08:55:44 +0000 (09:55 +0100)
A connector's DPMS mode isn't initialized by default, therefore using a
default of 0 (DRM_MODE_DPMS_ON). This can cause problems in that the DRM
core won't explicitly turn on a connector because it thinks that it is
already on.

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

index 708cbfffb059bd2da7c1c3d5e18f6da75f56fee6..2cb0065e0578f6d80da0532dad68a31e27a6924d 100644 (file)
@@ -265,6 +265,7 @@ int tegra_output_init(struct drm_device *drm, struct tegra_output *output)
        drm_connector_init(drm, &output->connector, &connector_funcs,
                           connector);
        drm_connector_helper_add(&output->connector, &connector_helper_funcs);
+       output->connector.dpms = DRM_MODE_DPMS_OFF;
 
        drm_encoder_init(drm, &output->encoder, &encoder_funcs, encoder);
        drm_encoder_helper_add(&output->encoder, &encoder_helper_funcs);