From: Vincent Abriou Date: Thu, 28 Jan 2016 08:11:03 +0000 (+0100) Subject: drm/sti: fix panel detection for DVO connector X-Git-Tag: v5.15~13916^2~5^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=974c3bb511ce0db8c1ba04dd8e242d2eba9c8762;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Benjamin Gaignard --- diff --git a/drivers/gpu/drm/sti/sti_dvo.c b/drivers/gpu/drm/sti/sti_dvo.c index 45cbe2b..9e90b74 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; }