Skip to content

Commit 6692dbc

Browse files
feijuan.lijnikula
authored andcommitted
drm/edid: fixed the bug that hdr metadata was not reset
When DP connected to a device with HDR capability, the hdr structure was filled.Then connected to another sink device without hdr capability, but the hdr info still exist. Fixes: e85959d ("drm: Parse HDR metadata info from EDID") Cc: <[email protected]> # v5.3+ Signed-off-by: "feijuan.li" <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jani Nikula <[email protected]>
1 parent 72c7d62 commit 6692dbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/drm_edid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6596,6 +6596,7 @@ static void drm_reset_display_info(struct drm_connector *connector)
65966596
info->has_hdmi_infoframe = false;
65976597
info->rgb_quant_range_selectable = false;
65986598
memset(&info->hdmi, 0, sizeof(info->hdmi));
6599+
memset(&connector->hdr_sink_metadata, 0, sizeof(connector->hdr_sink_metadata));
65996600

66006601
info->edid_hdmi_rgb444_dc_modes = 0;
66016602
info->edid_hdmi_ycbcr444_dc_modes = 0;

0 commit comments

Comments
 (0)