Commit 3cb6830a authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Inki Dae

drm/exynos: init kms poll at the end of initialization

HPD events can be generated by components even if drm_dev is not fully
initialized, to skip such events kms poll initialization should
be performed at the end of load callback followed directly by forced
connection detection.
Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 64f7aed8
...@@ -94,9 +94,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) ...@@ -94,9 +94,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
goto err_mode_config_cleanup; goto err_mode_config_cleanup;
} }
/* init kms poll for handling hpd */
drm_kms_helper_poll_init(dev);
/* setup possible_clones. */ /* setup possible_clones. */
exynos_drm_encoder_setup(dev); exynos_drm_encoder_setup(dev);
...@@ -116,9 +113,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) ...@@ -116,9 +113,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
if (ret) if (ret)
goto err_cleanup_vblank; goto err_cleanup_vblank;
/* force connectors detection */
drm_helper_hpd_irq_event(dev);
/* /*
* enable drm irq mode. * enable drm irq mode.
* - with irq_enabled = true, we can use the vblank feature. * - with irq_enabled = true, we can use the vblank feature.
...@@ -136,6 +130,12 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) ...@@ -136,6 +130,12 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
*/ */
dev->vblank_disable_allowed = true; dev->vblank_disable_allowed = true;
/* init kms poll for handling hpd */
drm_kms_helper_poll_init(dev);
/* force connectors detection */
drm_helper_hpd_irq_event(dev);
return 0; return 0;
err_cleanup_vblank: err_cleanup_vblank:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment