mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Isabelle, Francois" <Francois.Isabelle@ca.kontron.com>
To: <cananian@alumni.princeton.edu>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH] pckeyb legacy free option vs kbd_controller_present()  ( Yet Another Patch)
Date: Wed, 21 Jun 2006 16:09:22 -0400	[thread overview]
Message-ID: <C2866F9FC4CB034EB51A633DF1685986369B76@ssbarcelone.teknor.com> (raw)

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


                 reply	other threads:[~2006-06-21 20:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=C2866F9FC4CB034EB51A633DF1685986369B76@ssbarcelone.teknor.com \
    --to=francois.isabelle@ca.kontron.com \
    --cc=cananian@alumni.princeton.edu \
    --cc=linux-kernel@vger.kernel.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 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®