drm/edid: When reset, assume HDMI displays support RGB444

If an HDMI connector has no EDID and the mode is set via the
kernel command line, then drm_reset_display_info() is the only
thing that will have set up any of connector->display_info.

With commit 26ff1c38fc ("drm/connector: hdmi: Compute bpc
and format automatically"), it is now checked that
DRM_COLOR_FORMAT_RGB444 is supported. Whilst it doesn't fail
the request, it does log dev_warn for every commit, spamming
the log.

For HDMI connectors initialise the color_format field to say
it supports RGB444.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
This commit is contained in:
Dave Stevenson
2025-01-28 17:40:03 +00:00
committed by Dom Cobley
parent df71b01a54
commit 15e23a3723

View File

@@ -6609,7 +6609,11 @@ static void drm_reset_display_info(struct drm_connector *connector)
info->height_mm = 0;
info->bpc = 0;
info->color_formats = 0;
if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
connector->connector_type == DRM_MODE_CONNECTOR_HDMIB)
info->color_formats = DRM_COLOR_FORMAT_RGB444;
else
info->color_formats = 0;
info->cea_rev = 0;
info->max_tmds_clock = 0;
info->dvi_dual = false;