diff options
author | Vincent Abriou <vincent.abriou@st.com> | 2016-01-28 09:11:03 +0100 |
---|---|---|
committer | Vincent Abriou <vincent.abriou@st.com> | 2016-02-26 10:06:17 +0100 |
commit | 974c3bb511ce0db8c1ba04dd8e242d2eba9c8762 (patch) | |
tree | 1f3e46d137bbdd6cc77021c3f20595aa7a09396e | |
parent | 1834b84d13cec63e7f6d61bed9d2111a9ec96f01 (diff) | |
download | linux-974c3bb511ce0db8c1ba04dd8e242d2eba9c8762.tar.gz linux-974c3bb511ce0db8c1ba04dd8e242d2eba9c8762.tar.bz2 linux-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>
-rw-r--r-- | drivers/gpu/drm/sti/sti_dvo.c | 8 |
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; } |