]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Add i8042 pre-detection hook to x86_platform_ops
authorFeng Tang <feng.tang@intel.com>
Mon, 5 Jul 2010 15:03:18 +0000 (23:03 +0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 8 Jul 2010 00:05:06 +0000 (17:05 -0700)
commit844ed7ec4089bd39d591aab72c1467d33d3f3f40
treed35de959d3114a6b08992add2fd268698a294a5b
parentbd0a126ae64e108c6de7959cada2077b275dec0a
x86: Add i8042 pre-detection hook to x86_platform_ops

Some x86 platforms like Intel MID platforms don't have i8042 controllers,
and i8042 driver's probe to some legacy IO ports may hang the MID
processor. With this hook, i8042 driver can runtime check and skip the
probe when the pretection fail which also saves some probe time

[ hpa note: this is currently a compile-time check, which breaks the
  i386 allyesconfig build.  This patch series thus does fix a regression. ]

Signed-off-by: Feng Tang <feng.tang@intel.com>
LKML-Reference: <1278342202-10973-2-git-send-email-feng.tang@intel.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/x86_init.h
arch/x86/kernel/x86_init.c