drm/i915: Kill the leftover RMW from ivb_sprite_disable()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 15 Oct 2015 14:04:04 +0000 (17:04 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 15 Oct 2015 16:45:52 +0000 (18:45 +0200)
We still had one lingering RMW in ivb_sprite_disable(), all the other
RMWs were killed off from the sprite code some time ago. Kill the
straggler too.

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_sprite.c

index e70b6fc2c6c5380ac7e1d27fea447b85dc05901a..56dc132e8e20a092c2f61ce8f1f11d62580294e1 100644 (file)
@@ -613,7 +613,7 @@ ivb_disable_plane(struct drm_plane *plane, struct drm_crtc *crtc)
        struct intel_plane *intel_plane = to_intel_plane(plane);
        int pipe = intel_plane->pipe;
 
-       I915_WRITE(SPRCTL(pipe), I915_READ(SPRCTL(pipe)) & ~SPRITE_ENABLE);
+       I915_WRITE(SPRCTL(pipe), 0);
        /* Can't leave the scaler enabled... */
        if (intel_plane->can_scale)
                I915_WRITE(SPRSCALE(pipe), 0);