public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Intel FB pixel clock calculation fix
@ 2007-09-10 19:24 Krzysztof Halasa
  2007-09-11  5:52 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Halasa @ 2007-09-10 19:24 UTC (permalink / raw)
  To: sylvain.meyer; +Cc: Andrew Morton, linux-kernel

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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-10-26 19:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10 19:24 [PATCH] Intel FB pixel clock calculation fix Krzysztof Halasa
2007-09-11  5:52 ` Andrew Morton
2007-09-11 12:18   ` Krzysztof Halasa
2007-10-26 17:51     ` Pavel Machek
2007-10-26 19:58       ` Krzysztof Halasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox