Skip to content

Commit 05e2320

Browse files
feijuan.lismb49
authored andcommitted
drm/edid: fixed the bug that hdr metadata was not reset
BugLink: https://bugs.launchpad.net/bugs/2115678 commit 6692dbc15e5ed40a3aa037aced65d7b8826c58cd upstream. 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: <stable@vger.kernel.org> # v5.3+ Signed-off-by: "feijuan.li" <feijuan.li@samsung.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://lore.kernel.org/r/20250514063511.4151780-1-feijuan.li@samsung.com Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
1 parent 7373cd4 commit 05e2320

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)