drm: fix EDID backward compat check
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>
This commit is contained in:
committed by
Dave Airlie
parent
6714977b45
commit
b94ee65289
@@ -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);
|
DRM_ERROR("EDID has major version %d, instead of 1\n", edid->version);
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
if (edid->revision > 3) {
|
if (edid->revision > 4)
|
||||||
DRM_ERROR("EDID has minor version %d, which is not between 0-3\n", edid->revision);
|
DRM_DEBUG("EDID minor > 4, assuming backward compatibility\n");
|
||||||
goto bad;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < EDID_LENGTH; i++)
|
for (i = 0; i < EDID_LENGTH; i++)
|
||||||
csum += raw_edid[i];
|
csum += raw_edid[i];
|
||||||
|
Reference in New Issue
Block a user