drm/edid: Don't skip every eighth EST III mode
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Oct 2013 13:44:26 +0000 (16:44 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 03:27:51 +0000 (13:27 +1000)
Also check the est3 modes whose presence is indicated by bit 0.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index 0ea0ec720cf8e8078ebf5a17f078e85ee7561012..1fa47671bf57e141a6fd43ffd963ed9546b3e0a7 100644 (file)
@@ -2080,7 +2080,7 @@ drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing)
        u8 *est = ((u8 *)timing) + 5;
 
        for (i = 0; i < 6; i++) {
-               for (j = 7; j > 0; j--) {
+               for (j = 7; j >= 0; j--) {
                        m = (i * 8) + (7 - j);
                        if (m >= ARRAY_SIZE(est3_modes))
                                break;