[PATCH] Intel FB pixel clock calculation fix

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <sylvain.meyer@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>
Date: Monday, September 10, 2007 - 3:24 pm

Intel framebuffer mis-calculated pixel clocks.

Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>

--- a/drivers/video/intelfb/intelfbhw.c
+++ b/drivers/video/intelfb/intelfbhw.c
@@ -924,10 +920,10 @@ calc_pll_params(int index, int clock, u32 *retm1, u32 *retm2, u32 *retn, u32 *re
 			if (m > pll->max_m)
 				m = pll->max_m - 1;
 			for (testm = m - 1; testm <= m; testm++) {
-				f_out = calc_vclock3(index, m, n, p);
+				f_out = calc_vclock3(index, testm, n, p);
 				if (splitm(index, testm, &m1, &m2)) {
-					WRN_MSG("cannot split m = %d\n", m);
-					n++;
+					WRN_MSG("cannot split m = %d\n",
+						testm);
 					continue;
 				}
 				if (clock > f_out)
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Intel FB pixel clock calculation fix, Krzysztof Halasa, (Mon Sep 10, 3:24 pm)
Re: [PATCH] Intel FB pixel clock calculation fix, Andrew Morton, (Tue Sep 11, 1:52 am)
Re: [PATCH] Intel FB pixel clock calculation fix, Krzysztof Halasa, (Tue Sep 11, 8:18 am)
Re: [PATCH] Intel FB pixel clock calculation fix, Pavel Machek, (Fri Oct 26, 1:51 pm)
Re: [PATCH] Intel FB pixel clock calculation fix, Krzysztof Halasa, (Fri Oct 26, 3:58 pm)