Commit 27bfa74b authored by Jani Nikula's avatar Jani Nikula Committed by Daniel Vetter

drm: also move DSI panels to the front of the connector list

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: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1479378548-32695-1-git-send-email-jani.nikula@intel.com
parent bae781b2
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
* Some userspace presumes that the first connected connector is the main * Some userspace presumes that the first connected connector is the main
* display, where it's supposed to display e.g. the login screen. For * 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 * 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. * painstakingly trying to initialize them in the right order.
*/ */
void drm_helper_move_panel_connectors_to_head(struct drm_device *dev) 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) ...@@ -51,7 +51,8 @@ void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
list_for_each_entry_safe(connector, tmp, list_for_each_entry_safe(connector, tmp,
&dev->mode_config.connector_list, head) { &dev->mode_config.connector_list, head) {
if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS || 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); list_move_tail(&connector->head, &panel_list);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment