From: Wan Zongshun <Vincent.Wan@amd.com>
To: dmitry.torokhov@gmail.coom, bp@alien8.de, linux-input@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, mcuos.com@gmail.com,
Wan Zongshun <Vincent.Wan@amd.com>
Subject: [PATCH v2] Implement i8042 detect by BIOS FADT i8042 flag
Date: Wed, 2 Dec 2015 14:07:18 -0500 [thread overview]
Message-ID: <1449083238-13179-1-git-send-email-Vincent.Wan@amd.com> (raw)
Detecting x86 platform supporting i8042 or not, we should resort
to BIOS's FADT i8042 flag per ACPI spec.
Currently, Windows is conforming to this spec, and request this
flag to detect i8042 supporting.
Signed-off-by: Wan Zongshun <Vincent.Wan@amd.com>
---
drivers/input/serio/i8042-x86ia64io.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index c115565..73686bd 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,9 @@ 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 (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_8042))
+ return -ENODEV;
#endif
/*
--
1.9.1
next reply other threads:[~2015-12-02 11:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 19:07 Wan Zongshun [this message]
2015-12-02 11:45 ` [PATCH v2] Implement i8042 detect by BIOS FADT i8042 flag Borislav Petkov
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=1449083238-13179-1-git-send-email-Vincent.Wan@amd.com \
--to=vincent.wan@amd.com \
--cc=bp@alien8.de \
--cc=dmitry.torokhov@gmail.coom \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcuos.com@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).