]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drm: fix EDID backward compat check
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 2 Apr 2009 21:56:24 +0000 (14:56 -0700)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Apr 2009 23:21:46 +0000 (09:21 +1000)
EDIDs should be backward compatible, so don't bail if we see a version
of 3 (which is out there now) and print a message if we see something
newer, but allow it to be parsed.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index 2c4a340e682f576ca5cf3d4ffcebaf1ed99716df..ca9c61656714b3da8ef3d76938c622e28aa3af13 100644 (file)
@@ -125,10 +125,8 @@ static bool edid_is_valid(struct edid *edid)
                DRM_ERROR("EDID has major version %d, instead of 1\n", edid->version);
                goto bad;
        }
-       if (edid->revision > 3) {
-               DRM_ERROR("EDID has minor version %d, which is not between 0-3\n", edid->revision);
-               goto bad;
-       }
+       if (edid->revision > 4)
+               DRM_DEBUG("EDID minor > 4, assuming backward compatibility\n");
 
        for (i = 0; i < EDID_LENGTH; i++)
                csum += raw_edid[i];