Skip to content

Commit d97c1a2

Browse files
author
sivu
committed
Reorder initialization to perform better during boot.
If device is booted with HDMI cable attached, hot plug event occurs before driver is completely initialized. By moving drm_kms_helper_poll_init after crtc is created, the hot plug event is processed properly. Signed-off-by: sivu <mikko.sivulainen@seriously.com>
1 parent fb2d2d6 commit d97c1a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/adi_axi_hdmi/axi_hdmi_drv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ static int axi_hdmi_load(struct drm_device *dev, unsigned long flags)
6666

6767
drm_mode_config_init(dev);
6868

69-
/* init kms poll for handling hpd */
70-
drm_kms_helper_poll_init(dev);
71-
7269
axi_hdmi_mode_config_init(dev);
7370

7471
private->crtc = axi_hdmi_crtc_create(dev);
@@ -90,6 +87,9 @@ static int axi_hdmi_load(struct drm_device *dev, unsigned long flags)
9087
goto err_crtc;
9188
}
9289

90+
/* init kms poll for handling hpd */
91+
drm_kms_helper_poll_init(dev);
92+
9393
return 0;
9494

9595
err_crtc:

0 commit comments

Comments
 (0)