If vlv_find_best_dpll() couldn't find suitable PLL settings,
just say so instead of lying to caller.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
unsigned int bestppm = 1000000;
/* min update 19.2 MHz */
int max_n = min(limit->n.max, refclk / 19200);
+ bool found = false;
target *= 5; /* fast clock */
if (ppm < 100 && clock.p > best_clock->p) {
bestppm = 0;
*best_clock = clock;
+ found = true;
}
if (bestppm >= 10 && ppm < bestppm - 10) {
bestppm = ppm;
*best_clock = clock;
+ found = true;
}
}
}
}
}
- return true;
+ return found;
}
bool intel_crtc_active(struct drm_crtc *crtc)