Skip to content

Commit 32bcc01

Browse files
6by9popcornmix
authored andcommitted
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 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]>
1 parent 031a382 commit 32bcc01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/gpu/drm/drm_edid.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -6587,7 +6587,11 @@ static void drm_reset_display_info(struct drm_connector *connector)
65876587
info->height_mm = 0;
65886588

65896589
info->bpc = 0;
6590-
info->color_formats = 0;
6590+
if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
6591+
connector->connector_type == DRM_MODE_CONNECTOR_HDMIB)
6592+
info->color_formats = DRM_COLOR_FORMAT_RGB444;
6593+
else
6594+
info->color_formats = 0;
65916595
info->cea_rev = 0;
65926596
info->max_tmds_clock = 0;
65936597
info->dvi_dual = false;

0 commit comments

Comments
 (0)