drm/modes: Limit fallback modes to 60Hz
authorAdam Jackson <ajax@redhat.com>
Mon, 23 Nov 2009 19:23:04 +0000 (14:23 -0500)
committerDave Airlie <airlied@redhat.com>
Tue, 24 Nov 2009 01:24:21 +0000 (11:24 +1000)
See also: http://bugzilla.redhat.com/514600

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index cea665d86dd387e3515b0ed1a1fb310d1ac15075..dd95edfcfdc74de2b83160dca251c9fd7d81c774 100644 (file)
@@ -1290,6 +1290,8 @@ int drm_add_modes_noedid(struct drm_connector *connector,
                                        ptr->vdisplay > vdisplay)
                                continue;
                }
+               if (drm_mode_vrefresh(ptr) > 61)
+                       continue;
                mode = drm_mode_duplicate(dev, ptr);
                if (mode) {
                        drm_mode_probed_add(connector, mode);