Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 011acce2 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter
Browse files

drm/edid: Clear the old cea_rev when there's no CEA extension in the new EDID



It's not a good idea to leave stale cea_rev in the drm_display_info. The
current EDID might not even have a CEA ext block in which case we'd end
up leaving the stale value in place.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1475070703-6435-8-git-send-email-ville.syrjala@linux.intel.com
parent 1cea146a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3844,6 +3844,7 @@ static void drm_add_display_info(struct drm_connector *connector,
	/* driver figures it out in this case */
	info->bpc = 0;
	info->color_formats = 0;
	info->cea_rev = 0;

	if (edid->revision < 3)
		return;