]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - drivers/gpu/drm/i915/intel_display.c
drm/i915: use cpu_transcoder for TRANS_DDI_FUNC_CTL
[linux-imx.git] / drivers / gpu / drm / i915 / intel_display.c
index 6f7e4cc35d99add55151e470117b424df336d27c..3c90605ddd45e59764b06f8b1bda019ed9b14645 100644 (file)
@@ -5990,16 +5990,15 @@ static bool haswell_get_pipe_config(struct intel_crtc *crtc,
                return false;
 
        /*
-        * aswell has only FDI/PCH transcoder A. It is which is connected to
+        * Haswell has only FDI/PCH transcoder A. It is which is connected to
         * DDI E. So just check whether this pipe is wired to DDI E and whether
         * the PCH transcoder is on.
         */
-       tmp = I915_READ(TRANS_DDI_FUNC_CTL(crtc->pipe));
+       tmp = I915_READ(TRANS_DDI_FUNC_CTL(cpu_transcoder));
        if ((tmp & TRANS_DDI_PORT_MASK) == TRANS_DDI_SELECT_PORT(PORT_E) &&
            I915_READ(TRANSCONF(PIPE_A)) & TRANS_ENABLE)
                pipe_config->has_pch_encoder = true;
 
-
        return true;
 }