drm/probe-helper: enable and disable HPD on connectors
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 2 Nov 2022 18:07:00 +0000 (21:07 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 5 Jan 2023 13:59:44 +0000 (14:59 +0100)
commitc8268795c9a9cc7be50f78d4502fad83a2a4f8df
tree168e5b8de4d09fc758e0ecd8d1d662fdf8a1eccf
parent78b991ccfa64a438e2d8c2997d22d55621ab277d
drm/probe-helper: enable and disable HPD on connectors

Introduce two drm_connector_helper_funcs: enable_hpd() and disable_hpd().
They are called by drm_kms_helper_poll_enable() and
drm_kms_helper_poll_disable() (and thus drm_kms_helper_poll_init() and
drm_kms_helper_poll_fini()) respectively.

This allows DRM drivers to rely on drm_kms_helper_poll for enabling and
disabling HPD detection rather than doing that manually.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221102180705.459294-3-dmitry.baryshkov@linaro.org
drivers/gpu/drm/drm_probe_helper.c
include/drm/drm_modeset_helper_vtables.h