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

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
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -345,11 +345,13 @@ 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_disconnected;