drm: add helper to sort panels to the head of the connector list
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 27 Oct 2012 13:52:04 +0000 (15:52 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:51:28 +0000 (23:51 +0100)
commitcfc1a062063bb5b8e3fa2b007043dfc9e27b5a40
treeaf4aec7b23866d870a91d5a763f0307d09651e7d
parentab4d966c522f84b385d87f5ed2b622a7e4c22a6b
drm: add helper to sort panels to the head of the connector list

Userspace seems to like this, see

commit cb0953d734348e8862d6d7edc666cfb3bf6d8fae
Author: Adam Jackson <ajax@redhat.com>
Date:   Fri Jul 16 14:46:29 2010 -0400

    drm/i915: Initialize LVDS and eDP outputs before anything else

    This makes them sort to the front in X, which makes them likely to be
    the primary outputs if you haven't specified a preference in your DE,
    which is likely to be what you want.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Sorting the connector list after the fact is much easier than trying
to be clever with the init sequence.

Acked-by: Dave Airlie <airlied@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc_helper.c
include/drm/drm_crtc_helper.h