提交 6cf75178 编写于 作者: D Damien Lespiau 提交者: Daniel Vetter

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: NDamien Lespiau <damien.lespiau@intel.com>
Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 ea875496
...@@ -1184,6 +1184,10 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */, ...@@ -1184,6 +1184,10 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */,
} }
if (min_dco_index > 2 && dco_count == 2) { if (min_dco_index > 2 && dco_count == 2) {
/* oh well, we tried... */
if (retry_with_odd)
break;
retry_with_odd = true; retry_with_odd = true;
dco_count = 0; dco_count = 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册