Commit c19b3b0f authored by Torsten Duwe's avatar Torsten Duwe Committed by Linus Torvalds

KMS: fix EDID detailed timing frame rate

When KMS has parsed an EDID "detailed timing", it leaves the frame rate
zeroed.  Consecutive (debug-) output of that mode thus yields 0 for
vsync.  This simple fix also speeds up future invocations of
drm_mode_vrefresh().

While it is debatable whether this qualifies as a -stable fix I'd apply
it for consistency's sake; drm_helper_probe_single_connector_modes()
does the same thing already for all probed modes.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarTorsten Duwe <duwe@lst.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 16dad1d7
...@@ -1715,6 +1715,7 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev, ...@@ -1715,6 +1715,7 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
} }
mode->type = DRM_MODE_TYPE_DRIVER; mode->type = DRM_MODE_TYPE_DRIVER;
mode->vrefresh = drm_mode_vrefresh(mode);
drm_mode_set_name(mode); drm_mode_set_name(mode);
return mode; return mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment