Skip to content

Commit

Permalink
drm: xlnx: zynqmp_dpsub: fix hotplug detection
Browse files Browse the repository at this point in the history
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: stable@vger.kernel.org
Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241028134218.54727-1-lists@steffen.cc
  • Loading branch information
Steffen Dirkwinkel authored and Tomi Valkeinen committed Oct 30, 2024
1 parent 223842c commit 71ba1c9
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 @@ -511,12 +511,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 71ba1c9

Please sign in to comment.