drm/edid: fixed the bug that hdr metadata was not reset
authorfeijuan.li <feijuan.li@samsung.com>
Wed, 14 May 2025 06:35:11 +0000 (14:35 +0800)
committerJani Nikula <jani.nikula@intel.com>
Mon, 19 May 2025 09:26:08 +0000 (12:26 +0300)
commit6692dbc15e5ed40a3aa037aced65d7b8826c58cd
tree7993bf61ac861c0785af521c1c6366e5154ad38e
parent72c7d62583ebce7baeb61acce6057c361f73be4a
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: <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>
drivers/gpu/drm/drm_edid.c