drm: also move DSI panels to the front of the connector list
authorJani Nikula <jani.nikula@intel.com>
Thu, 17 Nov 2016 10:29:08 +0000 (12:29 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 17 Nov 2016 10:59:26 +0000 (11:59 +0100)
We've overlooked adding DSI panels to the front of the connector
list. This seems to be the right thing to do, and I suspect this might
fix some issues, although I currently have no evidence to support this.

v2: also git add the comment change

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1479378548-32695-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/drm_modeset_helper.c

index 633355e0239867afe7739b9a64d6d289994a0215..cc232ac6c9503842caac3043fb0a827530fde9fa 100644 (file)
@@ -38,7 +38,7 @@
  * 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. Use this function to sort all
- * (eDP/LVDS) panels to the front of the connector list, instead of
+ * (eDP/LVDS/DSI) panels to the front of the connector list, instead of
  * painstakingly trying to initialize them in the right order.
  */
 void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
@@ -51,7 +51,8 @@ void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
        list_for_each_entry_safe(connector, tmp,
                                 &dev->mode_config.connector_list, head) {
                if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
-                   connector->connector_type == DRM_MODE_CONNECTOR_eDP)
+                   connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
+                   connector->connector_type == DRM_MODE_CONNECTOR_DSI)
                        list_move_tail(&connector->head, &panel_list);
        }