intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Skip DDI PLL selection for DSI
@ 2016-02-05 11:29 Mika Kahola
  2016-02-05 11:47 ` ✗ Fi.CI.BAT: failure for " Patchwork
  2016-02-09  2:52 ` [PATCH] " Thulasimani, Sivakumar
  0 siblings, 2 replies; 7+ messages in thread
From: Mika Kahola @ 2016-02-05 11:29 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula

Skip DDI PLL selection if display type is DSI/MIPI.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index d7de2a5..5da98b2 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9902,8 +9902,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;
 
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-09 15:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-05 11:29 [PATCH] drm/i915: Skip DDI PLL selection for DSI Mika Kahola
2016-02-05 11:47 ` ✗ Fi.CI.BAT: failure for " Patchwork
2016-02-09  2:52 ` [PATCH] " Thulasimani, Sivakumar
2016-02-09  6:32   ` Jani Nikula
2016-02-09  7:46     ` Thulasimani, Sivakumar
2016-02-09  9:52       ` Ville Syrjälä
2016-02-09 15:43         ` Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).