From 315579e08fc9ac07e9d3b62a07f73b28d9f27b59 Mon Sep 17 00:00:00 2001 From: Robert Chiras Date: Tue, 5 Dec 2017 09:24:24 +0200 Subject: [PATCH] MLK-16986-1: phy: Fix Mixel PHY driver best_match When setting up the CM, CN and CO decimal values for DPHY PLL, these values should only be rounded up when a "best_match" is requested. Some DSI receivers requires the DSI clock to be exactly matched with the pixel clock. Signed-off-by: Robert Chiras Reviewed-by: Laurentiu Palcu 255) return -EINVAL; - numerator = DIV_ROUND_UP(numerator, denominator) * denominator; + if (best_match) + numerator = DIV_ROUND_UP(numerator, denominator) * denominator; priv->divider.cn = 1; if (denominator > 8) { -- 2.17.1