From: tip-bot for Feng Tang <feng.tang@intel.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
tony.luck@intel.com, dtor@mail.ru, tglx@linutronix.de,
feng.tang@intel.com, hpa@linux.intel.com
Subject: [tip:x86/urgent] input: i8042 - add runtime check in x86's i8042_platform_init
Date: Thu, 8 Jul 2010 07:17:15 GMT [thread overview]
Message-ID: <tip-5cdfa1c3bbabb809ef3134f741a63e13373a8cad@git.kernel.org> (raw)
In-Reply-To: <4c34dd482753bb8f1@agluck-desktop.sc.intel.com>
Commit-ID: 5cdfa1c3bbabb809ef3134f741a63e13373a8cad
Gitweb: http://git.kernel.org/tip/5cdfa1c3bbabb809ef3134f741a63e13373a8cad
Author: Feng Tang <feng.tang@intel.com>
AuthorDate: Wed, 7 Jul 2010 13:02:16 -0700
Committer: H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Wed, 7 Jul 2010 17:05:07 -0700
input: i8042 - add runtime check in x86's i8042_platform_init
Then it will first check x86_platforms's i8042 detection result,
then go on with normal probe.
Signed-off-by: Feng Tang <feng.tang@intel.com>
LKML-Reference: <4c34dd482753bb8f1@agluck-desktop.sc.intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
drivers/input/serio/i8042-x86ia64io.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index 6168469..81003c4 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -7,6 +7,10 @@
* the Free Software Foundation.
*/
+#ifdef CONFIG_X86
+#include <asm/x86_init.h>
+#endif
+
/*
* Names.
*/
@@ -840,6 +844,12 @@ static int __init i8042_platform_init(void)
{
int retval;
+#ifdef CONFIG_X86
+ /* Just return if pre-detection shows no i8042 controller exist */
+ if (!x86_platform.i8042_detect())
+ return -ENODEV;
+#endif
+
/*
* On ix86 platforms touching the i8042 data register region can do really
* bad things. Because of this the region is always reserved on ix86 boxes.
next prev parent reply other threads:[~2010-07-08 7:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 15:03 [PATCH v2 0/5] patches to settle i8042 with Intel MID platforms feng.tang
2010-07-05 15:03 ` [PATCH v2 1/5] x86: add i8042 pre-detection hook to x86_platform_ops feng.tang
2010-07-08 7:16 ` [tip:x86/urgent] x86: Add " tip-bot for Feng Tang
2010-07-05 15:03 ` [PATCH v2 2/5] x86, mrst: add i8042_detect API for Moorestwon platform feng.tang
2010-07-08 7:16 ` [tip:x86/urgent] x86, mrst: Add " tip-bot for Feng Tang
2010-07-05 15:03 ` [PATCH v2 3/5] Revert "Input: do not force selecting i8042 on Moorestown" feng.tang
2010-07-08 7:16 ` [tip:x86/urgent] " tip-bot for Feng Tang
2010-07-05 15:03 ` [PATCH v2 4/5] Revert "Input: fixup X86_MRST selects" feng.tang
2010-07-08 7:16 ` [tip:x86/urgent] " tip-bot for Feng Tang
2010-07-05 15:03 ` [PATCH v2 5/5] input: i8042 - add runtime check in x86's i8042_platform_init feng.tang
2010-07-07 20:02 ` Luck, Tony
2010-07-08 7:17 ` tip-bot for Feng Tang [this message]
2010-07-05 19:45 ` [PATCH v2 0/5] patches to settle i8042 with Intel MID platforms H. Peter Anvin
2010-07-05 20:22 ` Dmitry Torokhov
2010-07-05 20:24 ` H. Peter Anvin
2010-07-05 20:29 ` Dmitry Torokhov
2010-07-07 23:12 ` H. Peter Anvin
2010-07-08 7:15 ` [tip:x86/urgent] x86, platform: Export x86_platform to modules tip-bot for H. Peter Anvin
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=tip-5cdfa1c3bbabb809ef3134f741a63e13373a8cad@git.kernel.org \
--to=feng.tang@intel.com \
--cc=dtor@mail.ru \
--cc=hpa@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.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
Powered by JetHome