drm/dp/mst: split connector registration into two parts (v2)
authorDave Airlie <airlied@redhat.com>
Wed, 16 Sep 2015 07:55:23 +0000 (17:55 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Oct 2015 05:34:41 +0000 (15:34 +1000)
commitd9515c5ec1a20c77d83471e634ad9bb12deb0eac
treefc0f8cb6098aa942f4dfe6749fb8c55b34161a34
parent68d8c9fc91a0f63a2a10ccf7adf56f69125c11c1
drm/dp/mst: split connector registration into two parts (v2)

In order to cache the EDID properly for tiled displays, we
need to retrieve it before we register the connector with
userspace, otherwise userspace can call get resources
and try and get the edid before we've even cached it.

This fixes some problems when hotplugging mst monitors,
with X/mutter running. As mutter seems to get 0 modes
for one of the monitors in the tile.

v2: fix warning in radeon
handle tile setting in cached path rather than
get edid path.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_mst_topology.c
drivers/gpu/drm/i915/intel_dp_mst.c
drivers/gpu/drm/radeon/radeon_dp_mst.c
include/drm/drm_dp_mst_helper.h