Commit 974c3bb5 authored by Vincent Abriou's avatar Vincent Abriou

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: default avatarVincent Abriou <vincent.abriou@st.com>
Reviewed-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
parent 1834b84d
...@@ -345,11 +345,13 @@ sti_dvo_connector_detect(struct drm_connector *connector, bool force) ...@@ -345,11 +345,13 @@ sti_dvo_connector_detect(struct drm_connector *connector, bool force)
DRM_DEBUG_DRIVER("\n"); DRM_DEBUG_DRIVER("\n");
if (!dvo->panel) if (!dvo->panel) {
dvo->panel = of_drm_find_panel(dvo->panel_node); dvo->panel = of_drm_find_panel(dvo->panel_node);
if (dvo->panel)
drm_panel_attach(dvo->panel, connector);
}
if (dvo->panel) if (dvo->panel)
if (!drm_panel_attach(dvo->panel, connector))
return connector_status_connected; return connector_status_connected;
return connector_status_disconnected; return connector_status_disconnected;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment