diff options
| author | feijuan.li <[email protected]> | 2025-05-14 06:35:11 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2025-05-19 09:26:08 +0000 |
| commit | 6692dbc15e5ed40a3aa037aced65d7b8826c58cd (patch) | |
| tree | 7993bf61ac861c0785af521c1c6366e5154ad38e | |
| parent | dma-buf: insert memory barrier before updating num_fences (diff) | |
| download | kernel-6692dbc15e5ed40a3aa037aced65d7b8826c58cd.tar.gz kernel-6692dbc15e5ed40a3aa037aced65d7b8826c58cd.zip | |
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: e85959d6cbe0 ("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]>
| -rw-r--r-- | drivers/gpu/drm/drm_edid.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 13bc4c290b17..9edb3247c767 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -6596,6 +6596,7 @@ static void drm_reset_display_info(struct drm_connector *connector) info->has_hdmi_infoframe = false; info->rgb_quant_range_selectable = false; memset(&info->hdmi, 0, sizeof(info->hdmi)); + memset(&connector->hdr_sink_metadata, 0, sizeof(connector->hdr_sink_metadata)); info->edid_hdmi_rgb444_dc_modes = 0; info->edid_hdmi_ycbcr444_dc_modes = 0; |
