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 0ea0ec7..1fa4767 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;