Skip to content

Commit

Permalink
drm/edid: When reset, assume HDMI displays support RGB444
Browse files Browse the repository at this point in the history
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 26ff1c3 ("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 <[email protected]>
  • Loading branch information
6by9 committed Jan 28, 2025
1 parent 3852486 commit c3d28e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gpu/drm/drm_edid.c
Original file line number Diff line number Diff line change
Expand Up @@ -6581,7 +6581,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;
Expand Down

0 comments on commit c3d28e8

Please sign in to comment.