2014-09-05 14:18:34 +00:00
|
|
|
From d09792ada20b48b4453b5d24b49402a1241c0513 Mon Sep 17 00:00:00 2001
|
2010-07-29 23:46:31 +00:00
|
|
|
From: Bastien Nocera <hadess@hadess.net>
|
|
|
|
Date: Thu, 20 May 2010 10:30:31 -0400
|
2014-08-20 17:22:24 +00:00
|
|
|
Subject: [PATCH] disable i8042 check on apple mac
|
2010-07-29 23:46:31 +00:00
|
|
|
|
|
|
|
As those computers never had any i8042 controllers, and the
|
|
|
|
current lookup code could potentially lock up/hang/wait for
|
|
|
|
timeout for long periods of time.
|
|
|
|
|
|
|
|
Fixes intermittent hangs on boot on a MacbookAir1,1
|
|
|
|
|
2014-08-20 17:22:24 +00:00
|
|
|
Bugzilla: N/A
|
|
|
|
Upstream-status: http://lkml.indiana.edu/hypermail/linux/kernel/1005.0/00938.html (and pinged on Dec 17, 2013)
|
|
|
|
|
2010-07-29 23:46:31 +00:00
|
|
|
Signed-off-by: Bastien Nocera <hadess@hadess.net>
|
|
|
|
---
|
2014-08-20 17:22:24 +00:00
|
|
|
drivers/input/serio/i8042.c | 22 ++++++++++++++++++++++
|
|
|
|
1 file changed, 22 insertions(+)
|
2010-07-29 23:46:31 +00:00
|
|
|
|
|
|
|
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
|
2014-08-20 17:22:24 +00:00
|
|
|
index 612f855c340f..f1aeb0240d6e 100644
|
2010-07-29 23:46:31 +00:00
|
|
|
--- a/drivers/input/serio/i8042.c
|
|
|
|
+++ b/drivers/input/serio/i8042.c
|
2014-08-20 17:22:24 +00:00
|
|
|
@@ -1469,6 +1469,22 @@ static struct platform_driver i8042_driver = {
|
2010-07-29 23:46:31 +00:00
|
|
|
.shutdown = i8042_shutdown,
|
|
|
|
};
|
|
|
|
|
|
|
|
+#ifdef CONFIG_DMI
|
|
|
|
+static struct dmi_system_id __initdata dmi_system_table[] = {
|
|
|
|
+ {
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_MATCH(DMI_BIOS_VENDOR, "Apple Computer, Inc.")
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_MATCH(DMI_BIOS_VENDOR, "Apple Inc.")
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {}
|
|
|
|
+};
|
|
|
|
+#endif /*CONFIG_DMI*/
|
|
|
|
+
|
|
|
|
static int __init i8042_init(void)
|
|
|
|
{
|
|
|
|
struct platform_device *pdev;
|
2014-08-20 17:22:24 +00:00
|
|
|
@@ -1476,6 +1492,12 @@ static int __init i8042_init(void)
|
2010-07-29 23:46:31 +00:00
|
|
|
|
|
|
|
dbg_init();
|
|
|
|
|
|
|
|
+#ifdef CONFIG_DMI
|
|
|
|
+ /* Intel Apple Macs never have an i8042 controller */
|
|
|
|
+ if (dmi_check_system(dmi_system_table) > 0)
|
|
|
|
+ return -ENODEV;
|
|
|
|
+#endif /*CONFIG_DMI*/
|
|
|
|
+
|
|
|
|
err = i8042_platform_init();
|
|
|
|
if (err)
|
|
|
|
return err;
|
|
|
|
--
|
2014-08-20 17:22:24 +00:00
|
|
|
1.9.3
|
2010-07-29 23:46:31 +00:00
|
|
|
|