]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit704a0e375afdb100a3432f440ff992284045096e
treeaf4aec7b23866d870a91d5a763f0307d09651e7d
parent40538268d0dd1498aaf6f75810e4e21ce8b2a92b
drm: add helper to sort panels to the head of the connector list

Userspace seems to like this, see

commit a4149491af7aa47645501c0f0a926642ec1d873a
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