UPSTREAM: drm: Add a callback from connector registering
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Jun 2016 12:17:47 +0000 (13:17 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Tue, 3 Jan 2017 01:15:25 +0000 (09:15 +0800)
commitcf6cc46859ca86ef14292ecf999805a03c458813
tree240c9854a3a0bbffdd4fe7c8e09ec24a6f9dcc03
parentfa8043229337af2e8868967efd79370f53a66042
UPSTREAM: drm: Add a callback from connector registering

If a driver wants to more precisely control its initialisation and in
particular, defer registering its interfaces with userspace until after
everything is setup, it also needs to defer registering the connectors.
As some devices need more work during registration, add a callback so
that drivers can do additional work if required for a connector.

Correspondingly, we also require an unregister callback.

Cc: Dave Airlie <airlied@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[danvet: go ocd and remvoe unecessary empty kerneldoc line.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465993109-19523-3-git-send-email-chris@chris-wilson.co.uk
(cherry-pick from commit aaf285e2e0ff490e924dbcdfd08e8274c3093354)

Change-Id: Ifb7513fb7eea2293d0f3705c0c00923c5f7fde0c
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h