linux/drivers/gpu/drm/arm
Brian Starkey 90731c24d2 drm/i2c: tda998x: mali-dp: hdlcd: refactor connector registration
Connectors shouldn't be registered until the rest of the whole device
is set up, so that consistent state is presented to userspace.

As such, remove the calls to drm_connector_register() and
drm_connector_unregister() from tda998x, as these are now handled by
drm_dev_(un)register() itself.

To work with this change, the mali-dp and hdlcd bind and unbind
sequences have to be reordered, to ensure that the componentised
encoder/connector is bound before drm_dev_register() registers all
connectors. Similarly, the device must be unregistered before the
component is unbound.

Altogether, this allows other drivers using tda998x to be
de-midlayered, and to have less racy initialisation of their components.

Splitting this commit into three (one per driver) isn't possible without
intermediate breakage, so it is all squashed together here.

Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Brian Starkey <brian.starkey@arm.com>
Reviewed-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
2016-10-31 12:04:54 +00:00
..
Kconfig drm/arm: make fbdev support really optional 2016-07-18 09:11:42 +02:00
Makefile drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
hdlcd_crtc.c Merge tag 'topic/drm-misc-2016-06-07' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-06-09 11:19:28 +10:00
hdlcd_drv.c drm/i2c: tda998x: mali-dp: hdlcd: refactor connector registration 2016-10-31 12:04:54 +00:00
hdlcd_drv.h drm: hdlcd: Cleanup the atomic plane operations 2016-06-02 17:45:29 +01:00
hdlcd_regs.h drm: Add support for ARM's HDLCD controller. 2016-02-10 13:44:16 +00:00
malidp_crtc.c drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_drv.c drm/i2c: tda998x: mali-dp: hdlcd: refactor connector registration 2016-10-31 12:04:54 +00:00
malidp_drv.h drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_hw.c drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_hw.h drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_planes.c drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_regs.h drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00