From: Ville Syrjälä Date: Wed, 28 Sep 2016 13:51:40 +0000 (+0300) Subject: UPSTREAM: drm/edid: Clear the old cea_rev when there's no CEA extension in the new... X-Git-Tag: release-20171130_firefly~4^2~356 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eec15bd5b9006dc18f44fa1ef06f2a9fe0e5d6ba;p=firefly-linux-kernel-4.4.55.git UPSTREAM: 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. Change-Id: I57e2bd4a92ddcab8c8f345c5e7e251cfa1fbd231 Signed-off-by: Ville Syrjälä Acked-by: Christian König Reviewed-by: Alex Deucher Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1475070703-6435-8-git-send-email-ville.syrjala@linux.intel.com Signed-off-by: Zheng Yang (cherry picked from commit 011acce2859ad50b7a923cad4a726220b5f24455) --- diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 39d2a9818a9a..306e67c9f82d 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -4190,6 +4190,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;