From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Lalancette Subject: [PATCH]: Add command-line option to i8042 to completely disable it Date: Mon, 23 Jul 2007 13:05:22 -0400 Message-ID: <46A4DFD2.2010501@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090206090200010202010802" Return-path: Sender: owner-linux-input@atrey.karlin.mff.cuni.cz List-Help: List-Owner: List-Post: List-Unsubscribe: To: linux-kernel@vger.kernel.org Cc: dmitry.torokhov@gmail.com, linux-input@atrey.karlin.mff.cuni.cz List-Id: linux-input@vger.kernel.org This is a multi-part message in MIME format. --------------090206090200010202010802 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit (I tried to send this patch to linux-input@, but it seems to be currently having some problems, so I'm going directly to LKML). Certain (broken) pieces of South Bridge hardware will respond to i8042_read_status() on boot with 0x0, despite there not being a real i8042 controller hooked up in the south bridge. This can cause the detection for the i8042 to return a "phantom" device, which hangs up later initialization. Note that using "i8042.nokbd" and/or "i8042.noaux" do not help with this, since this shows up during i8042_controller_check() (before either of those options are checked). This patch adds a command-line option "i8042.disable", which just completely disables any checking for the i8042 controller. Signed-off-by: Chris Lalancette --------------090206090200010202010802 Content-Type: text/x-patch; name="linux-2.6-i8042-serio-disable.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="linux-2.6-i8042-serio-disable.patch" diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 3888dc3..a13039c 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -27,6 +27,10 @@ MODULE_AUTHOR("Vojtech Pavlik "); MODULE_DESCRIPTION("i8042 keyboard and mouse controller driver"); MODULE_LICENSE("GPL"); +static unsigned int i8042_disable; +module_param_named(disable, i8042_disable, bool, 0); +MODULE_PARM_DESC(disable, "Do not probe i8042 at all."); + static unsigned int i8042_nokbd; module_param_named(nokbd, i8042_nokbd, bool, 0); MODULE_PARM_DESC(nokbd, "Do not probe or use KBD port."); @@ -1194,6 +1198,11 @@ static int __init i8042_init(void) { int err; + if (i8042_disable) { + printk(KERN_ERR "i8042.c: Controller disabled by kernel command-line\n"); + return -ENODEV; + } + dbg_init(); err = i8042_platform_init(); --------------090206090200010202010802--