drm/bridge-connector: reset the HDMI connector state
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 3 Sep 2024 02:01:58 +0000 (05:01 +0300)
committerMaxime Ripard <mripard@kernel.org>
Tue, 3 Sep 2024 08:18:31 +0000 (10:18 +0200)
commit9a71cf8b6fa433a8f243626ba9930a3870584e38
tree202572ba337a72324c608eb1e3e0e4f0b1caeacd
parent9da7ec9b19d8c1ad4f44e459fa5f93ad7a117dcd
drm/bridge-connector: reset the HDMI connector state

On HDMI connectors which use drm_bridge_connector and DRM_BRIDGE_OP_HDMI
IGT chokes on the max_bpc property in several kms_properties tests due
to the drm_bridge_connector failing to reset HDMI-related
properties.

Call __drm_atomic_helper_connector_hdmi_reset() if the
drm_bridge_connector has bridge_hdmi.

It is impossible to call this function from HDMI bridges, none of the
bridge callbacks correspond to the drm_connector_funcs::reset().

Fixes: 6b4468b0c6ba ("drm/bridge-connector: implement glue code for HDMI connector")
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240903-drm-bridge-connector-fix-hdmi-reset-v5-3-daebde6d9857@linaro.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/display/Kconfig
drivers/gpu/drm/display/drm_bridge_connector.c