drm/i915: Use POSTING_READ() in intel_sdvo_write_sdvox()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 5 May 2015 14:17:32 +0000 (17:17 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:39 +0000 (13:03 +0200)
Use POSTING_READ() in intel_sdvo_write_sdvox() as appropriate.

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

index 10cd332528387022d408889760c6035de10e88a2..0a0625761f4265905810e27d4f61526a5914528d 100644 (file)
@@ -242,7 +242,7 @@ static void intel_sdvo_write_sdvox(struct intel_sdvo *intel_sdvo, u32 val)
 
        if (intel_sdvo->sdvo_reg == PCH_SDVOB) {
                I915_WRITE(intel_sdvo->sdvo_reg, val);
-               I915_READ(intel_sdvo->sdvo_reg);
+               POSTING_READ(intel_sdvo->sdvo_reg);
                return;
        }
 
@@ -259,9 +259,9 @@ static void intel_sdvo_write_sdvox(struct intel_sdvo *intel_sdvo, u32 val)
        for (i = 0; i < 2; i++)
        {
                I915_WRITE(GEN3_SDVOB, bval);
-               I915_READ(GEN3_SDVOB);
+               POSTING_READ(GEN3_SDVOB);
                I915_WRITE(GEN3_SDVOC, cval);
-               I915_READ(GEN3_SDVOC);
+               POSTING_READ(GEN3_SDVOC);
        }
 }