Re: [PATCH] input: fixup X86_MRST selects

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Torokhov
Date: Thursday, June 10, 2010 - 12:04 pm

On Wednesday, June 09, 2010 03:42:08 pm Randy Dunlap wrote:

Actually, I do not think this is a correct approach. While Moorestown does
not have i8042 theoretically it is possible to add AT-style keyboard by
other means (however unlikely it is) so we should not be disabling it.

We should, however, disallow i8042 from being selected. Could you please
tell me if the patch below works for you?

Thanks!

-- 
Dmitry

Input: fixup X86_MRST selects

From: Randy Dunlap <randy.dunlap@oracle.com>

Some of the recent X86_MRST additions make some "select"s
conditional on X86_MRST but missed some related kconfig symbols,
causing:

drivers/built-in.o: In function `ps2_end_command':
(.text+0x257ab2): undefined reference to `i8042_check_port_owner'
drivers/built-in.o: In function `ps2_end_command':
(.text+0x257ae1): undefined reference to `i8042_unlock_chip'
drivers/built-in.o: In function `ps2_begin_command':
(.text+0x257b40): undefined reference to `i8042_check_port_owner'
drivers/built-in.o: In function `ps2_begin_command':
(.text+0x257b6f): undefined reference to `i8042_lock_chip'

when SERIO_I8042=m, SERIO_LIBPS2=y, KEYBOARD_ATKBD=y.

We need to make i8042 dependant upon !X86_MRST and allow deselecting
atkbd on Moorestown even when !CONFIG_EMBEDDED.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

 drivers/input/keyboard/Kconfig |    2 +-
 drivers/input/serio/Kconfig    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig
index 9522b89..d3a99de 100644
--- a/drivers/input/keyboard/Kconfig
+++ b/drivers/input/keyboard/Kconfig
@@ -69,7 +69,7 @@ config KEYBOARD_ATARI
 	  module will be called atakbd.
 
 config KEYBOARD_ATKBD
-	tristate "AT keyboard" if EMBEDDED || !X86
+	tristate "AT keyboard" if EMBEDDED || !X86 || X86_MRST
 	default y
 	select SERIO
 	select SERIO_LIBPS2
diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig
index 3bfe8fa..256b9e9 100644
--- a/drivers/input/serio/Kconfig
+++ b/drivers/input/serio/Kconfig
@@ -22,7 +22,7 @@ config SERIO_I8042
 	tristate "i8042 PC Keyboard controller" if EMBEDDED || !X86
 	default y
 	depends on !PARISC && (!ARM || ARCH_SHARK || FOOTBRIDGE_HOST) && \
-		   (!SUPERH || SH_CAYMAN) && !M68K && !BLACKFIN
+		   (!SUPERH || SH_CAYMAN) && !M68K && !BLACKFIN && !X86_MRST
 	help
 	  i8042 is the chip over which the standard AT keyboard and PS/2
 	  mouse are connected to the computer. If you use these devices,
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for June 9, Stephen Rothwell, (Tue Jun 8, 8:34 pm)
Re: linux-next: Tree for June 9 (niu), Randy Dunlap, (Wed Jun 9, 10:36 am)
Re: linux-next: Tree for June 9 (niu), David Miller, (Wed Jun 9, 11:06 am)
Re: linux-next: Tree for June 9 (niu), Randy Dunlap, (Wed Jun 9, 11:08 am)
[PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Wed Jun 9, 3:29 pm)
Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Wed Jun 9, 3:40 pm)
Re: [PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Wed Jun 9, 3:42 pm)
[PATCH 2/2 -next] niu: always include of_device.h, Randy Dunlap, (Wed Jun 9, 3:44 pm)
Re: [PATCH 2/2 -next] niu: always include of_device.h, Grant Likely, (Wed Jun 9, 4:45 pm)
Re: [PATCH 2/2 -next] niu: always include of_device.h, David Miller, (Wed Jun 9, 5:29 pm)
Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Thu Jun 10, 12:04 pm)
Re: [PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Tue Jun 15, 8:17 am)
problem: Re: [PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Mon Jun 28, 12:03 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Mon Jun 28, 1:18 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Mon Jun 28, 1:23 pm)
RE: problem: Re: [PATCH] input: fixup X86_MRST selects, Pan, Jacob jun, (Mon Jun 28, 2:12 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Mon Jun 28, 3:44 pm)
RE: problem: Re: [PATCH] input: fixup X86_MRST selects, Pan, Jacob jun, (Mon Jun 28, 4:22 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Thu Jul 1, 9:46 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, H. Peter Anvin, (Thu Jul 1, 11:27 pm)