linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix get_std_timing
@ 2004-03-04 22:15 Kronos
  2004-03-04 22:31 ` James Simmons
  0 siblings, 1 reply; 18+ messages in thread
From: Kronos @ 2004-03-04 22:15 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: James Simmons

Hi,
I thought that this was fixed ages ago, but I see that the bug it's still
here. To recap, get_std_timing will exit after the first iteration on
VESA modedb. Fix is trivial, James please apply:

--- linux-2.6/drivers/video/fbmon.c.orig	Thu Mar  4 23:11:43 2004
+++ linux-2.6/drivers/video/fbmon.c	Thu Mar  4 23:12:46 2004
@@ -572,12 +572,12 @@
 		    vesa_modes[i].yres == yres &&
 		    vesa_modes[i].refresh == refresh) {
 			*mode = vesa_modes[i];
-			break;
-		} else {
-			calc_mode_timings(xres, yres, refresh, mode);
-			break;
+			return 1;
 		}
 	}
+	
+	calc_mode_timings(xres, yres, refresh, mode);
+
 	return 1;
 }
 

Luca
-- 
Home: http://kronoz.cjb.net
Tentare e` il primo passo verso il fallimento.
Homer J. Simpson


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

end of thread, other threads:[~2004-03-12 23:47 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-04 22:15 [PATCH] Fix get_std_timing Kronos
2004-03-04 22:31 ` James Simmons
2004-03-05  2:37   ` Benjamin Herrenschmidt
2004-03-11 17:43     ` James Simmons
2004-03-11 17:50       ` Andrew Morton
2004-03-11 18:06         ` James Simmons
2004-03-11 18:13           ` Andrew Morton
2004-03-11 18:20             ` James Simmons
2004-03-11 22:49               ` Benjamin Herrenschmidt
2004-03-11 23:31                 ` James Simmons
2004-03-12 23:46               ` character drawing enhancement James Simmons
2004-03-11 18:23             ` Re: [PATCH] Fix get_std_timing James Simmons
2004-03-11 22:48               ` Benjamin Herrenschmidt
2004-03-11 23:26                 ` James Simmons
2004-03-11 18:29             ` Kronos
2004-03-11 19:32             ` James Simmons
2004-03-11 22:46               ` Benjamin Herrenschmidt
2004-03-11 23:32                 ` James Simmons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).