linux_dsm_epyc7002/drivers/gpu/drm/rockchip
Tomasz Figa 9127f99c48 drm/rockchip: Finish initialization before registering DRM device
Currently the driver calls drm_dev_register() directly after allocating
the DRM device and then continues with further initialization. This is
incorrect, because drm_dev_register() is supposed to be called after all
initialization is done. This problem was masked by the fact that
drm_dev_register() did not use to do anything special before, but
recently it started to call drm_connector_register_all(), which leads to
a crash if the driver is not fully initialized.

This patch fixes the problem by moving the call to drm_dev_register() to
the end of the initialization sequence and also removing the, now
unnecessary, call to drm_connector_register_all() from driver code.

Fixes: f706974a69 ("drm/rockchip: Drop drm_driver.load/unload callbacks")
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
[danvet: Fix up cleanup labels a bit.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466483254-35373-1-git-send-email-tfiga@chromium.org
2016-06-21 10:52:58 +02:00
..
analogix_dp-rockchip.c drm/rockchip: Resume DP early 2016-06-10 17:13:24 +02:00
dw_hdmi-rockchip.c drm/rockchip: get rid of rockchip_drm_crtc_mode_config 2016-05-03 14:11:23 +08:00
dw-mipi-dsi.c drm: rockchip: Rely on the default ->best_encoder() behavior 2016-06-10 17:24:37 +02:00
inno_hdmi.c drm: rockchip: Rely on the default ->best_encoder() behavior 2016-06-10 17:24:37 +02:00
inno_hdmi.h drm/rockchip: hdmi: add Innosilicon HDMI support 2016-02-18 13:56:43 +08:00
Kconfig drm: rockchip: select DRM_GEM_CMA_HELPER 2016-06-16 14:37:15 +02:00
Makefile drm: rockchip: dp: add rockchip platform dp driver 2016-04-05 10:13:04 +08:00
rockchip_drm_drv.c drm/rockchip: Finish initialization before registering DRM device 2016-06-21 10:52:58 +02:00
rockchip_drm_drv.h drm/rockchip: Use atomic PM helpers 2016-06-10 17:13:19 +02:00
rockchip_drm_fb.c drm/rockchip: convert to helper nonblocking atomic commit 2016-06-10 17:11:19 +02:00
rockchip_drm_fb.h drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
rockchip_drm_fbdev.c drm/rockchip: Disarm vop->is_enabled 2016-06-10 17:11:18 +02:00
rockchip_drm_fbdev.h drm/rockchip: respect CONFIG_DRM_FBDEV_EMULATION 2016-01-22 08:45:31 +08:00
rockchip_drm_gem.c drm/rockchip: fix compile warnings for 64-bit 2016-06-10 16:33:40 +02:00
rockchip_drm_gem.h drm/rockchip: Only alloc a kmap for fbdev gem object 2015-03-16 10:07:12 +08:00
rockchip_drm_vop.c drm: Deal with rotation in drm_plane_helper_check_update() 2016-06-17 16:41:25 +02:00
rockchip_drm_vop.h drm/rockchip: vop: spilt scale regsters 2015-12-28 09:01:41 +08:00
rockchip_vop_reg.c drm/rockchip: vop: add rk3036 vop support 2015-12-28 09:01:48 +08:00
rockchip_vop_reg.h drm/rockchip: vop: add rk3036 vop support 2015-12-28 09:01:48 +08:00