Skip to contentSkip to conversation

drm/edid: Clear EDID Deep Color Modes in drm_reset_display_info()

PATCH In review Maxime Ripard 1 participant 2 messages Jan 25, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/edid: Clear EDID Deep Color Modes in drm_reset_display_info()

Even though we have the other drm_display_info fields reset, the DC modes are missing.

This shouldn't be an issue since it's explicitly reset every time a new EDID is parsed.

---
 drivers/gpu/drm/drm_edid.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_edid.c +3 -0
index a504542238ed..a7663f9a11d2 100644
@@ -5340,6 +5340,9 @@ drm_reset_display_info(struct drm_connector *connector)
 	info->rgb_quant_range_selectable = false;
 	memset(&info->hdmi, 0, sizeof(info->hdmi));
 
+	info->edid_hdmi_rgb444_dc_modes = 0;
+	info->edid_hdmi_ycbcr444_dc_modes = 0;
+
 	info->non_desktop = 0;
 	memset(&info->monitor_range, 0, sizeof(info->monitor_range));
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 11 lines · Maxime Ripard

Even though we have the other drm_display_info fields reset, the DC modes are missing.

This shouldn't be an issue since it's explicitly reset every time a new EDID is parsed.

Sorry, this one can be ignored, I ended up sending the patch instead of the b4 thanks email.

maxime