From: Adam Jackson Date: Mon, 23 Nov 2009 19:23:04 +0000 (-0500) Subject: drm/modes: Limit fallback modes to 60Hz X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f985dedb57bae741b4326415f72fe1a1e556563b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/modes: Limit fallback modes to 60Hz See also: http://bugzilla.redhat.com/514600 Signed-off-by: Adam Jackson Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index cea665d86dd3..dd95edfcfdc7 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -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);