]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/display: add CEC helpers code
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sat, 17 May 2025 01:59:41 +0000 (04:59 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tue, 20 May 2025 22:35:16 +0000 (01:35 +0300)
commit8b1a8f8b2002d31136d83e4d730b4cb41e9ee868
tree05a834a2b30a8d374b79dbe0638bc55a331c4ae6
parentbcc8553b6228d0387ff64978a03efa3c8983dd2f
drm/display: add CEC helpers code

Add generic CEC helpers to be used by HDMI drivers. Both notifier and
and adapter are supported for registration. Once registered, the driver
can call common set of functions to update physical address, to
invalidate it or to unregister CEC data. Unlike drm_connector_cec_funcs
(which provides interface common to all implementations, including, but
not limited to the CEC adapter, CEC notifier, CEC pin-based adapter,
etc) the struct drm_connector_hdmi_cec_adapter_ops provides callbacks
specific to the CEC adapter implementations.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250517-drm-hdmi-connector-cec-v6-5-35651db6f19b@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/display/Kconfig
drivers/gpu/drm/display/Makefile
drivers/gpu/drm/display/drm_hdmi_cec_helper.c [new file with mode: 0644]
drivers/gpu/drm/display/drm_hdmi_cec_notifier_helper.c [new file with mode: 0644]
include/drm/display/drm_hdmi_cec_helper.h [new file with mode: 0644]