]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/display: hdmi-state-helper: handle CEC physical address
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sat, 17 May 2025 01:59:42 +0000 (04:59 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tue, 20 May 2025 22:35:16 +0000 (01:35 +0300)
Call HDMI CEC helpers in order to update physical address of the
adapter.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250517-drm-hdmi-connector-cec-v6-6-35651db6f19b@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/display/drm_hdmi_state_helper.c

index d9d9948b29e9d5ef9bc9cc9108b3ace4aca2e3ae..bae7aa624f7db61cc7d5ff7a86a413938963543f 100644 (file)
@@ -6,6 +6,7 @@
 #include <drm/drm_print.h>
 
 #include <drm/display/drm_hdmi_audio_helper.h>
+#include <drm/display/drm_hdmi_cec_helper.h>
 #include <drm/display/drm_hdmi_helper.h>
 #include <drm/display/drm_hdmi_state_helper.h>
 
@@ -1081,9 +1082,10 @@ drm_atomic_helper_connector_hdmi_update(struct drm_connector *connector,
        const struct drm_edid *drm_edid;
 
        if (status == connector_status_disconnected) {
-               // TODO: also handle CEC and scramber, HDMI sink disconnected.
+               // TODO: also handle scramber, HDMI sink disconnected.
                drm_connector_hdmi_audio_plugged_notify(connector, false);
                drm_edid_connector_update(connector, NULL);
+               drm_connector_cec_phys_addr_invalidate(connector);
                return;
        }
 
@@ -1097,8 +1099,9 @@ drm_atomic_helper_connector_hdmi_update(struct drm_connector *connector,
        drm_edid_free(drm_edid);
 
        if (status == connector_status_connected) {
-               // TODO: also handle CEC and scramber, HDMI sink is now connected.
+               // TODO: also handle scramber, HDMI sink is now connected.
                drm_connector_hdmi_audio_plugged_notify(connector, true);
+               drm_connector_cec_phys_addr_set(connector);
        }
 }