linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] radeonfb fix
@ 2004-01-03 18:32 Samuel Rydh
  2004-01-03 23:00 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Rydh @ 2004-01-03 18:32 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: benh


Hi,

The following patch is necessary to get the 2.6 radeonfb driver to detect
the flatpanel display. I believe the 2.4 code does exactly the same thing.


===== drivers/video/radeonfb.c 1.32 vs edited =====
--- 1.32/drivers/video/radeonfb.c	Fri Nov  7 13:07:07 2003
+++ edited/drivers/video/radeonfb.c	Sat Jan  3 17:20:25 2004
@@ -947,7 +947,7 @@
 	tmp = INREG(RADEON_BIOS_4_SCRATCH);
 	printk(KERN_DEBUG "radeon_get_moninfo: bios 4 scratch = %x\n", tmp);

-	if (rinfo->hasCRTC2) {
+	if (rinfo->hasCRTC2 && tmp ) {
 		/* primary DVI port */
 		if (tmp & 0x08)
 			rinfo->dviDisp_type = MT_DFP;


/Samuel

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2004-01-04 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-03 18:32 [PATCH] radeonfb fix Samuel Rydh
2004-01-03 23:00 ` Benjamin Herrenschmidt
2004-01-04 14:05   ` Samuel Rydh

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).