mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pckeyb legacy free option vs kbd_controller_present()  ( Yet Another Patch)
@ 2006-06-21 20:09 Isabelle, Francois
  0 siblings, 0 replies; only message in thread
From: Isabelle, Francois @ 2006-06-21 20:09 UTC (permalink / raw)
  To: cananian; +Cc: linux-kernel

There is already some patches for this feature (see http://lkml.org/lkml/2002/12/4/162)
This one has the benefit of not being "CONFIG" time, but rather "BOOT" time using  pc_keyb=off.



--- /usr/src/linux-2.4.32/drivers/char/pc_keyb.c	Thu Nov 28 18:53:12 2002
+++ /usr/src/linux-2.4.32-82571ACPI/drivers/char/pc_keyb.c	Wed Jun 21 16:01:42 2006
@@ -13,6 +13,8 @@
  * Code fixes to handle mouse ACKs properly.
  * C. Scott Ananian <cananian@alumni.princeton.edu> 1999-01-29.
  *
+ * Added pc_keyb setup option to avoid boot delays on legacy free PCs
+ * Francois Isabelle <isabellf@sympatico.ca> 2006-06-21
  */
 
 #include <linux/config.h>
@@ -48,6 +50,11 @@
 
 #include <linux/pc_keyb.h>
 
+unsigned int pc_keyb_probe=1; 
+
+static int __devinit pc_keyb_setup(char *str);
+
+
 /* Simple translation table for the SysRq keys */
 
 #ifdef CONFIG_MAGIC_SYSRQ
@@ -801,6 +810,18 @@
 }
 #endif /* CONFIG_PSMOUSE */
 
+
+static int __devinit pc_keyb_setup(char *str)
+{
+	if (!strcmp(str, "off")) {
+		pc_keyb_probe = 0;
+		return 0;
+	}
+	return 1;
+}
+
+__setup("pc_keyb=", pc_keyb_setup);
+
 static char * __init initialize_kbd(void)
 {
 	int status;
@@ -898,6 +919,11 @@
 
 void __init pckbd_init_hw(void)
 {
+	if(!pc_keyb_probe ){
+		kbd_exists = 0;
+		return;
+	}
+
 	if (!kbd_controller_present()) {
 		kbd_exists = 0;
 		return;

Francois Isabelle


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-21 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-21 20:09 [PATCH] pckeyb legacy free option vs kbd_controller_present() ( Yet Another Patch) Isabelle, Francois

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

all inboxes | Powered by JetHome®