All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Rydh <samuel@ibrium.se>
To: linuxppc-dev@lists.linuxppc.org
Cc: benh@kernel.crashing.org
Subject: [PATCH] radeonfb fix
Date: Sat, 3 Jan 2004 19:32:42 +0100	[thread overview]
Message-ID: <20040103183242.GB1309@ibrium.se> (raw)


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/

             reply	other threads:[~2004-01-03 18:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-03 18:32 Samuel Rydh [this message]
2004-01-03 23:00 ` [PATCH] radeonfb fix Benjamin Herrenschmidt
2004-01-04 14:05   ` Samuel Rydh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040103183242.GB1309@ibrium.se \
    --to=samuel@ibrium.se \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.