drm/edid: Clear the old cea_rev when there's no CEA extension in the new EDID
authorVille Syrjälä <[email protected]>
Wed, 28 Sep 2016 13:51:40 +0000 (16:51 +0300)
committerDaniel Vetter <[email protected]>
Tue, 4 Oct 2016 06:23:12 +0000 (08:23 +0200)
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ä <[email protected]>
Acked-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_edid.c

index ef8ae691f7aa21ac50e5f47db7ba29371fa006a2..48e529df344eff09286b73ce427b25b826525373 100644 (file)
@@ -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;