From: Archit Taneja Date: Mon, 4 Jun 2012 08:06:34 +0000 (+0530) Subject: OMAPDSS: DSI: Fix bug when calculating LP command interleaving parameters X-Git-Tag: v3.5-rc3~26^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e063c305a3da896ec3db99e66891411d0e38820;p=pandora-kernel.git 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 Signed-off-by: Archit Taneja Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed