drm/i915: Skip DDI PLL selection for DSI
authorMika Kahola <[email protected]>
Fri, 5 Feb 2016 11:29:28 +0000 (13:29 +0200)
committerJani Nikula <[email protected]>
Tue, 9 Feb 2016 15:32:21 +0000 (17:32 +0200)
Skip DDI PLL selection if display type is DSI/MIPI.

Signed-off-by: Mika Kahola <[email protected]>
Reviewed-by: Sivakumar Thulasimani <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_display.c

index 5bc9a364b04afbffcea2b291ba1a1420b3b2c69a..76421c962216b40a536ece13c66f9a678b45ea8e 100644 (file)
@@ -9848,8 +9848,13 @@ static void broadwell_modeset_commit_cdclk(struct drm_atomic_state *old_state)
 static int haswell_crtc_compute_clock(struct intel_crtc *crtc,
                                      struct intel_crtc_state *crtc_state)
 {
-       if (!intel_ddi_pll_select(crtc, crtc_state))
-               return -EINVAL;
+       struct intel_encoder *intel_encoder =
+               intel_ddi_get_crtc_new_encoder(crtc_state);
+
+       if (intel_encoder->type != INTEL_OUTPUT_DSI) {
+               if (!intel_ddi_pll_select(crtc, crtc_state))
+                       return -EINVAL;
+       }
 
        crtc->lowfreq_avail = false;