drm/i915/skl: Make sure to break when not finding suitable PLL dividers
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 7 May 2015 17:38:38 +0000 (18:38 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 29 May 2015 08:15:22 +0000 (10:15 +0200)
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>
drivers/gpu/drm/i915/intel_ddi.c

index 54b60a9..233467f 100644 (file)
@@ -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;
                }