Skip to content

Commit 3cb6830

Browse files
Andrzej Hajdadaeinki
authored andcommitted
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: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent 64f7aed commit 3cb6830

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎drivers/gpu/drm/exynos/exynos_drm_drv.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
9494
goto err_mode_config_cleanup;
9595
}
9696

97-
/* init kms poll for handling hpd */
98-
drm_kms_helper_poll_init(dev);
99-
10097
/* setup possible_clones. */
10198
exynos_drm_encoder_setup(dev);
10299

@@ -116,9 +113,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
116113
if (ret)
117114
goto err_cleanup_vblank;
118115

119-
/* force connectors detection */
120-
drm_helper_hpd_irq_event(dev);
121-
122116
/*
123117
* enable drm irq mode.
124118
* - 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)
136130
*/
137131
dev->vblank_disable_allowed = true;
138132

133+
/* init kms poll for handling hpd */
134+
drm_kms_helper_poll_init(dev);
135+
136+
/* force connectors detection */
137+
drm_helper_hpd_irq_event(dev);
138+
139139
return 0;
140140

141141
err_cleanup_vblank:

0 commit comments

Comments
 (0)