Commit 3dfcec6b authored by Steffen Dirkwinkel's avatar Steffen Dirkwinkel Committed by Wen Zhiwei
Browse files

drm: xlnx: zynqmp_dpsub: fix hotplug detection

stable inclusion
from stable-v6.6.64
commit d50b5a7ac7f56cb816dab2879f05ebe9962daa3e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBL4B6

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d50b5a7ac7f56cb816dab2879f05ebe9962daa3e



--------------------------------

commit 71ba1c9b1c717831920c3d432404ee5a707e04b4 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: eb2d64bf ("drm: xlnx: zynqmp_dpsub: Report HPD through the bridge")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSteffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241028134218.54727-1-lists@steffen.cc


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarWen Zhiwei <wenzhiwei@kylinos.cn>
parent 75c9436d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);