]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DSI: Fix bug when calculating LP command interleaving parameters
authorArchit Taneja <archit@ti.com>
Mon, 4 Jun 2012 08:06:34 +0000 (13:36 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 4 Jun 2012 10:07:51 +0000 (13:07 +0300)
commitfa6cae4566011795e68fd424d2608dd04c77fa12
treeb3c432f2d92d8391c555225f1a7cd25cd73a4c87
parentd572ca5da067a26bb28312d120b38acfbb37a09a
OMAPDSS: DSI: Fix bug when calculating LP command interleaving parameters

In function dsi_compute_interleave_lp(), the escape clock/LP clock time period
is calculated incorrectly. The escape clock/LP clock is calculated as:

LP Clock(Hz) = DSI_FCLK(Hz) / lp_clk_div

Since we are calculating the time period of LP clock, the LP clock divider
should be multiplied with the time period of DSI_FCLK.

Calculating incorrect value of txclkesc results in incorrect calculation of LP
interleaving parameters, it also creates a possibility of a divide by zero
error.

Reported-by: Sureshkumar Manimuthu <mail2msuresh@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dsi.c