Skip to content

Commit

Permalink
drm: xlnx: zynqmp_dpsub: fix hotplug detection
Browse files Browse the repository at this point in the history
commit 71ba1c9 upstream.

drm_kms_helper_poll_init needs to be called after zynqmp_dpsub_kms_init.
zynqmp_dpsub_kms_init creates the connector and without it we don't
enable hotplug detection.

Fixes: eb2d64b ("drm: xlnx: zynqmp_dpsub: Report HPD through the bridge")
Cc: [email protected]
Signed-off-by: Steffen Dirkwinkel <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
sdirkwinkel authored and gregkh committed Dec 9, 2024
1 parent 65bea1c commit d50b5a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/xlnx/zynqmp_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,12 @@ int zynqmp_dpsub_drm_init(struct zynqmp_dpsub *dpsub)
if (ret)
return ret;

drm_kms_helper_poll_init(drm);

ret = zynqmp_dpsub_kms_init(dpsub);
if (ret < 0)
goto err_poll_fini;

drm_kms_helper_poll_init(drm);

/* Reset all components and register the DRM device. */
drm_mode_config_reset(drm);

Expand Down

0 comments on commit d50b5a7

Please sign in to comment.