aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sti/sti_dvo.c
diff options
context:
space:
mode:
authorVincent Abriou <vincent.abriou@st.com>2016-01-28 09:11:03 +0100
committerVincent Abriou <vincent.abriou@st.com>2016-02-26 10:06:17 +0100
commit974c3bb511ce0db8c1ba04dd8e242d2eba9c8762 (patch)
tree1f3e46d137bbdd6cc77021c3f20595aa7a09396e /drivers/gpu/drm/sti/sti_dvo.c
parentdrm/sti: do not clip RGB/YUV component value at connector side (diff)
downloadlinux-dev-974c3bb511ce0db8c1ba04dd8e242d2eba9c8762.tar.xz
linux-dev-974c3bb511ce0db8c1ba04dd8e242d2eba9c8762.zip
drm/sti: fix panel detection for DVO connector
The DVO connector is tag as disconnect because of a wrong management of the panel detection. Signed-off-by: Vincent Abriou <vincent.abriou@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/sti/sti_dvo.c')
-rw-r--r--drivers/gpu/drm/sti/sti_dvo.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/sti/sti_dvo.c b/drivers/gpu/drm/sti/sti_dvo.c
index 45cbe2bf7dd6..9e90b746e9b2 100644
--- a/drivers/gpu/drm/sti/sti_dvo.c
+++ b/drivers/gpu/drm/sti/sti_dvo.c
@@ -345,12 +345,14 @@ sti_dvo_connector_detect(struct drm_connector *connector, bool force)
DRM_DEBUG_DRIVER("\n");
- if (!dvo->panel)
+ if (!dvo->panel) {
dvo->panel = of_drm_find_panel(dvo->panel_node);
+ if (dvo->panel)
+ drm_panel_attach(dvo->panel, connector);
+ }
if (dvo->panel)
- if (!drm_panel_attach(dvo->panel, connector))
- return connector_status_connected;
+ return connector_status_connected;
return connector_status_disconnected;
}