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

Submitted by Ville Syrjala on Sept. 28, 2016, 1:51 p.m.

Details

Message ID 1475070703-6435-8-git-send-email-ville.syrjala@linux.intel.com
State Accepted
Headers show
Series "drm/edid: Clean up display_info stuff" ( rev: 2 ) in Intel GFX

Not browsing as part of any series.

Commit Message

Ville Syrjala Sept. 28, 2016, 1:51 p.m.
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

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: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/drm_edid.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index ef8ae691f7aa..48e529df344e 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -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;