summaryrefslogtreecommitdiff
path: root/include/drm/drm_probe_helper.h
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2024-03-25 23:06:58 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2024-04-02 11:40:52 +0300
commit10021ef27310279c850cf6cb38542c443a995e92 (patch)
treebc8bb233cbf3177812ad89a681389fadfd17df90 /include/drm/drm_probe_helper.h
parent225a8d0bd93eb87fe49947069075260031bad8af (diff)
downloadlinux-10021ef27310279c850cf6cb38542c443a995e92.tar.xz
drm/ast: Automatically clean up poll helper
Automatically clean up the conncetor-poll thread as part of the DRM device release. The new helper drmm_kms_helper_poll_init() provides a shared implementation for all drivers. v6: - fix kernel doc comment (Sui, kernel test robot) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Acked-by: Sui Jingfeng <sui.jingfeng@linux.dev> Link: https://patchwork.freedesktop.org/patch/msgid/20240325200855.21150-14-tzimmermann@suse.de
Diffstat (limited to 'include/drm/drm_probe_helper.h')
-rw-r--r--include/drm/drm_probe_helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_probe_helper.h b/include/drm/drm_probe_helper.h
index e9dc32433631..d6ce7b218b77 100644
--- a/include/drm/drm_probe_helper.h
+++ b/include/drm/drm_probe_helper.h
@@ -16,6 +16,8 @@ int drm_helper_probe_single_connector_modes(struct drm_connector
int drm_helper_probe_detect(struct drm_connector *connector,
struct drm_modeset_acquire_ctx *ctx,
bool force);
+
+int drmm_kms_helper_poll_init(struct drm_device *dev);
void drm_kms_helper_poll_init(struct drm_device *dev);
void drm_kms_helper_poll_fini(struct drm_device *dev);
bool drm_helper_hpd_irq_event(struct drm_device *dev);