Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

OMAPDSS: DPI: Fix wrong pixel clock limit

DPI is supposed to skip odd dividers in the clock path when the pixel
clock is higher than 100MHz. The code, however, defines the pixel clock
limit as 1MHz. This causes the driver to skip valid clock dividers,
possibly making the pixel clock to be further away from the requested
one than necessary.

Fix the clock limit to 100MHz.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: NeilBrown <neilb@suse.de>

+2 -2
+2 -2
drivers/video/omap2/dss/dpi.c
··· 129 129 * shifted. So skip all odd dividers when the pixel clock is on the 130 130 * higher side. 131 131 */ 132 - if (ctx->pck_min >= 1000000) { 132 + if (ctx->pck_min >= 100000000) { 133 133 if (lckd > 1 && lckd % 2 != 0) 134 134 return false; 135 135 ··· 156 156 * shifted. So skip all odd dividers when the pixel clock is on the 157 157 * higher side. 158 158 */ 159 - if (regm_dispc > 1 && regm_dispc % 2 != 0 && ctx->pck_min >= 1000000) 159 + if (regm_dispc > 1 && regm_dispc % 2 != 0 && ctx->pck_min >= 100000000) 160 160 return false; 161 161 162 162 ctx->dsi_cinfo.regm_dispc = regm_dispc;