All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/msm/dp: make eDP panel as the first connected connector
@ 2022-06-28 15:20 ` Kuogee Hsieh
  0 siblings, 0 replies; 16+ messages in thread
From: Kuogee Hsieh @ 2022-06-28 15:20 UTC (permalink / raw)
  To: robdclark, sean, swboyd, dianders, vkoul, daniel, airlied,
	agross, dmitry.baryshkov, bjorn.andersson
  Cc: quic_abhinavk, quic_aravindh, quic_khsieh, quic_sbillaka,
	freedreno, dri-devel, linux-arm-msm, linux-kernel

Some userspace presumes that the first connected connector is the main
display, where it's supposed to display e.g. the login screen. For
laptops, this should be the main panel.

This patch call drm_helper_move_panel_connectors_to_head() after
drm_bridge_connector_init() to make sure eDP stay at head of
connected connector list. This fixes unexpected corruption happen
at eDP panel if eDP is not placed at head of connected connector
list.

Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
---
 drivers/gpu/drm/msm/dp/dp_drm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/msm/dp/dp_drm.c b/drivers/gpu/drm/msm/dp/dp_drm.c
index ce0ec3a..2d18884 100644
--- a/drivers/gpu/drm/msm/dp/dp_drm.c
+++ b/drivers/gpu/drm/msm/dp/dp_drm.c
@@ -136,5 +136,7 @@ struct drm_connector *dp_drm_connector_init(struct msm_dp *dp_display)
 
 	drm_connector_attach_encoder(connector, dp_display->encoder);
 
+	drm_helper_move_panel_connectors_to_head(dp_display->drm_dev);
+
 	return connector;
 }
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-07-05 11:35 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 15:20 [PATCH] drm/msm/dp: make eDP panel as the first connected connector Kuogee Hsieh
2022-06-28 15:20 ` Kuogee Hsieh
2022-06-28 20:13 ` Dmitry Baryshkov
2022-06-28 20:13   ` Dmitry Baryshkov
2022-06-30  0:36   ` Doug Anderson
2022-06-30  0:36     ` Doug Anderson
2022-06-30  1:57     ` Rob Clark
2022-06-30  1:57       ` Rob Clark
2022-06-30  2:10       ` [Freedreno] " Abhinav Kumar
2022-06-30  2:10         ` Abhinav Kumar
2022-06-30  6:14       ` Dmitry Baryshkov
2022-06-30  6:14         ` Dmitry Baryshkov
2022-07-04 18:14         ` Dmitry Baryshkov
2022-07-04 18:14           ` Dmitry Baryshkov
2022-07-05  5:41           ` [Freedreno] " Abhinav Kumar
2022-07-05  5:41             ` Abhinav Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.