summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ddi.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-05-07 18:38:38 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-05-29 10:15:22 +0200
commit6cf75178deacd87af12a657d914e6bbca806b5ba (patch)
tree03b957b3f731b72bbf10406c826e884ce1e5d1ed /drivers/gpu/drm/i915/intel_ddi.c
parentea875496360cf8f89ea009239bf7ef12cdd4febc (diff)
downloadop-kernel-dev-6cf75178deacd87af12a657d914e6bbca806b5ba.zip
op-kernel-dev-6cf75178deacd87af12a657d914e6bbca806b5ba.tar.gz
drm/i915/skl: Make sure to break when not finding suitable PLL dividers
Right now, when finishing the cycle with odd dividers without finding a suitable candidate, we end up in an infinite loop. Make sure to break in that case. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ddi.c')
-rw-r--r--drivers/gpu/drm/i915/intel_ddi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 54b60a9..233467f 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1184,6 +1184,10 @@ found:
}
if (min_dco_index > 2 && dco_count == 2) {
+ /* oh well, we tried... */
+ if (retry_with_odd)
+ break;
+
retry_with_odd = true;
dco_count = 0;
}
OpenPOWER on IntegriCloud