Skip to content

Commit 144d9b2

Browse files
Gil DekelChun-Kuang Hu
authored andcommitted
drm/mediatek: Make eDP panel as the first connected connector
[Why] Some userspaces assume that the first connected connector is the "main" display, which supposed to display, for example, the login screen. For laptops, this should be the internal connector. [How] This patch calls drm_helper_move_panel_connectors_to_head() right before crtc creation to ensure internal connectors are at the top of the connector list. Tested by ensuring the internal panels are at the top of the connector list via modetest -c. This patch does to mediatek what the following patch https://www.spinics.net/lists/stable/msg590605.html did for qualcomm. Signed-off-by: Gil Dekel <[email protected]> Tested-by: Gil Dekel <[email protected]> Reviewed-by: Sean Paul <[email protected]> Reviewed-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent ff446c0 commit 144d9b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/mediatek/mtk_drm_drv.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,12 @@ static int mtk_drm_kms_init(struct drm_device *drm)
386386
if (ret)
387387
goto put_mutex_dev;
388388

389+
/*
390+
* Ensure internal panels are at the top of the connector list before
391+
* crtc creation.
392+
*/
393+
drm_helper_move_panel_connectors_to_head(drm);
394+
389395
/*
390396
* We currently support two fixed data streams, each optional,
391397
* and each statically assigned to a crtc:

0 commit comments

Comments
 (0)