mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: feng.tang@intel.com
To: linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@elte.hu,
	hpa@zytor.com, jacob.jun.pan@intel.com, dtor@mail.ru,
	randy.dunlap@oracle.com
Cc: Feng Tang <feng.tang@intel.com>
Subject: [PATCH 2/5] x86, mrst: add i8042_detect API for Moorestwon platform
Date: Fri,  2 Jul 2010 16:35:13 +0800	[thread overview]
Message-ID: <1278059716-7147-3-git-send-email-feng.tang@intel.com> (raw)
In-Reply-To: <1278059716-7147-1-git-send-email-feng.tang@intel.com>

From: Feng Tang <feng.tang@intel.com>

It will just return 0 as there is no i8042 controller

Signed-off-by: Feng Tang <feng.tang@intel.com>
---
 arch/x86/kernel/mrst.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/mrst.c b/arch/x86/kernel/mrst.c
index e796448..5915e0b 100644
--- a/arch/x86/kernel/mrst.c
+++ b/arch/x86/kernel/mrst.c
@@ -216,6 +216,12 @@ static void __init mrst_setup_boot_clock(void)
 		setup_boot_APIC_clock();
 };
 
+/* MID systems don't have i8042 controller */
+static int mrst_i8042_detect(void)
+{
+	return 0;
+}
+
 /*
  * Moorestown specific x86_init function overrides and early setup
  * calls.
@@ -233,6 +239,7 @@ void __init x86_mrst_early_setup(void)
 	x86_cpuinit.setup_percpu_clockev = mrst_setup_secondary_clock;
 
 	x86_platform.calibrate_tsc = mrst_calibrate_tsc;
+	x86_platform.i8042_detect = mrst_i8042_detect;
 	x86_init.pci.init = pci_mrst_init;
 	x86_init.pci.fixup_irqs = x86_init_noop;
 
-- 
1.7.0.4


  parent reply	other threads:[~2010-07-02  8:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-02  8:35 [PATCH 0/5] patches to settle i8042 with Intel MID platforms feng.tang
2010-07-02  8:35 ` [PATCH 1/5] x86: add i8042 pre-detection hook to x86_platform_ops feng.tang
2010-07-02  8:35 ` feng.tang [this message]
2010-07-02  8:35 ` [PATCH 3/5] Revert "Input: do not force selecting i8042 on Moorestown" feng.tang
2010-07-02  8:35 ` [PATCH 4/5] Revert "Input: fixup X86_MRST selects" feng.tang
2010-07-02  8:35 ` [PATCH 5/5] input: i8042 - add runtime check in x86's i8042_platform_init feng.tang
2010-07-02 16:59   ` Dmitry Torokhov
2010-07-02 20:53   ` Thomas Gleixner
2010-07-02 20:58     ` H. Peter Anvin
2010-07-08 20:11       ` Luck, Tony

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=1278059716-7147-3-git-send-email-feng.tang@intel.com \
    --to=feng.tang@intel.com \
    --cc=dtor@mail.ru \
    --cc=hpa@zytor.com \
    --cc=jacob.jun.pan@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=randy.dunlap@oracle.com \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®