linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] input: i8042: add quirk to implement i8042 detect for AMD
@ 2015-10-16 13:27 Vincent Wan
  2015-10-16  8:58 ` Borislav Petkov
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent Wan @ 2015-10-16 13:27 UTC (permalink / raw)
  To: dmitry.torokhov, linux-input, linux-kernel
  Cc: Ray.Huang, mcuos.com, Vincent Wan

Detecting platform supports i8042 or not, AMD resorted to
BIOS's FADT i8042 flag.

Signed-off-by: Vincent Wan <Vincent.Wan@amd.com>
---
 drivers/input/serio/i8042-x86ia64io.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index c115565..bf3a605 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -9,6 +9,7 @@
 
 #ifdef CONFIG_X86
 #include <asm/x86_init.h>
+#include <linux/acpi.h>
 #endif
 
 /*
@@ -1047,6 +1048,11 @@ static int __init i8042_platform_init(void)
 	/* Just return if pre-detection shows no i8042 controller exist */
 	if (!x86_platform.i8042_detect())
 		return -ENODEV;
+
+	if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) {
+		if (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_8042))
+			return -ENODEV;
+	}
 #endif
 
 /*
-- 
1.9.1

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

end of thread, other threads:[~2015-11-19 15:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-16 13:27 [PATCH] input: i8042: add quirk to implement i8042 detect for AMD Vincent Wan
2015-10-16  8:58 ` Borislav Petkov
2015-10-16  9:06   ` Huang Rui
2015-10-16  9:35   ` Wan ZongShun
2015-10-16 10:21     ` Borislav Petkov
2015-10-17 16:38       ` Dmitry Torokhov
2015-11-19 14:40         ` Wan, Vincent

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