[PATCH v2 11/12] drm/tegra: dsi: Set connector DPMS state when enable/disable
Mark Zhang
markz at nvidia.com
Wed Jul 1 01:21:54 PDT 2015
This patch fixes a bug when drm_helper_connector_dpms tries to
switch connector/encoder/crtc DPMS status.
Signed-off-by: Mark Zhang <markz at nvidia.com>
---
drivers/gpu/drm/tegra/dsi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c
index 1d21f149d7f2..7917b7875496 100644
--- a/drivers/gpu/drm/tegra/dsi.c
+++ b/drivers/gpu/drm/tegra/dsi.c
@@ -898,6 +898,8 @@ static void tegra_dsi_encoder_mode_set(struct drm_encoder *encoder,
if (output->panel)
drm_panel_enable(output->panel);
+ output->connector.dpms = DRM_MODE_DPMS_ON;
+
return;
}
@@ -937,6 +939,7 @@ static void tegra_dsi_encoder_disable(struct drm_encoder *encoder)
tegra_dsi_disable(dsi);
+ output->connector.dpms = DRM_MODE_DPMS_OFF;
return;
}
--
1.7.9.5
More information about the dri-devel
mailing list