Message ID | 20180628194301.31694-5-ville.syrjala@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 14b827ec5427..c784e772b6aa 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -1932,6 +1932,15 @@ int intel_panel_init(struct intel_panel *panel, { intel_panel_init_backlight_funcs(panel); + if (fixed_mode) { + fixed_mode->vrefresh = 0; + fixed_mode->vrefresh = drm_mode_vrefresh(fixed_mode); + } + if (downclock_mode) { + downclock_mode->vrefresh = 0; + downclock_mode->vrefresh = drm_mode_vrefresh(downclock_mode); + } + panel->fixed_mode = fixed_mode; panel->downclock_mode = downclock_mode;