]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Eliminate rmw from .update_primary_plane()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 8 Aug 2014 18:51:10 +0000 (21:51 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 Aug 2014 18:53:37 +0000 (20:53 +0200)
commit210be08344d6b3abc4311c28b639b24690573c3e
treef649e40089135c23572ddcf6c7a622ccd99e24ce
parent251df5a767d10f5d194f775864ad0ae317d04349
drm/i915: Eliminate rmw from .update_primary_plane()

Move the entire DSPCNTR register setup into the .update_primary_plane()
functions. That's where it belongs anyway and it'll also help 830M which
has the extra problem that plane registers reads will return the value
latched at the last vblank, not the value that was last written.

Also move DSPPOS and DSPSIZE setup there.

v2: Don't move variable initialization to avoid churn later

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c