diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-09-10 18:59:07 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-10-14 13:41:57 +0300 |
commit | c4816c7389d8dbcad036be7e5a34584289d9f590 (patch) | |
tree | 0e3a28aa9658ab8c284d92c859b8113c35535196 /drivers/accessibility | |
parent | 2e2edebefceef201624dcc323a1f7761e0040cf5 (diff) | |
download | linux-c4816c7389d8dbcad036be7e5a34584289d9f590.tar.xz |
drm/i915: Assign hwmode after encoder state readout
The dotclock is often calculated in encoder .get_config(), so we
shouldn't copy the adjusted_mode to hwmode until we have read out the
dotclock.
Gets rid of some warnings like these:
[drm:drm_calc_timestamping_constants [drm]] *ERROR* crtc 21: Can't calculate constants, dotclock = 0!
[drm:i915_get_vblank_timestamp] crtc 0 is disabled
v2: Steal Maarten's idea to move crtc->mode etc. assignment too
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91428
Reviewed-by: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[Jani: cherry-picked from -next to v4.3]
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/accessibility')
0 files changed, 0 insertions, 0 deletions