linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i810fb: make probe of DDC3 optional
@ 2006-01-25  7:17 Manuel Lauss
  2006-01-25  7:23 ` Antonino A. Daplas
  0 siblings, 1 reply; 7+ messages in thread
From: Manuel Lauss @ 2006-01-25  7:17 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: adaplas


Some time before 2.6.15, a third DDC channel was added to i810fb.
On systems where these ddc pins are not connected, the probe
takes about 10 seconds.

Introduce a config option to disable the probe on ddc channel 3.
Reduces boot time on my i815 laptop by 10 seconds.


diff -Naurp linux-2.6.15/drivers/video/Kconfig linux-2.6.15-b/drivers/video/Kconfig
--- linux-2.6.15/drivers/video/Kconfig	2006-01-03 04:21:10.000000000 +0100
+++ linux-2.6.15-b/drivers/video/Kconfig	2006-01-25 08:02:54.772567000 +0100
@@ -728,6 +728,16 @@ config FB_I810_I2C
 	select I2C_ALGOBIT
 	help
 
+config FB_I810_I2C_NODDC3
+	bool "Disable probing on DDC3"
+	depends on FB_I810_I2C
+	default y
+	help
+	  Select this if you want to skip the probe of DDC3. On I810 where
+	  the DDC3 pins are not connected, probing will take a very long time,
+	  enabling this option will skip this probe altogether, shortening
+	  boot/module-load time by about 10 seconds.
+
 config FB_INTEL
 	tristate "Intel 830M/845G/852GM/855GM/865G support (EXPERIMENTAL)"
 	depends on FB && EXPERIMENTAL && PCI && X86_32
diff -Naurp linux-2.6.15/drivers/video/i810/i810-i2c.c linux-2.6.15-b/drivers/video/i810/i810-i2c.c
--- linux-2.6.15/drivers/video/i810/i810-i2c.c	2006-01-03 04:21:10.000000000 +0100
+++ linux-2.6.15-b/drivers/video/i810/i810-i2c.c	2006-01-25 08:00:20.822567000 +0100
@@ -190,6 +190,11 @@ int i810_probe_i2c_connector(struct fb_i
         u8 *edid = NULL;
         int i;
 
+#ifdef CONFIG_FB_I810_I2C_NODDC3
+	if (conn == 3)
+		return 1;
+#endif
+
 	DPRINTK("i810-i2c: Probe DDC%i Bus\n", conn);
 	if (conn < 4) {
 		for (i = 0; i < 3; i++) {


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

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

end of thread, other threads:[~2006-01-26  6:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-25  7:17 [PATCH] i810fb: make probe of DDC3 optional Manuel Lauss
2006-01-25  7:23 ` Antonino A. Daplas
2006-01-25  7:30   ` Manuel Lauss
2006-01-25  7:49     ` Antonino A. Daplas
2006-01-26  6:03       ` Manuel Lauss
2006-01-26  6:37         ` Antonino A. Daplas
2006-01-26  7:00           ` switching betwwen LCD and CRT display ramprasad

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