linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/10] Kconfig: cleanup SERIO_I8042 dependencies
@ 2013-12-17 15:48 Mark Salter
  2013-12-17 15:48 ` [PATCH v2 05/10] powerpc: select ARCH_MIGHT_HAVE_PC_SERIO Mark Salter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mark Salter @ 2013-12-17 15:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fenghua Yu, Tony Luck, Russell King, linux-mips, linux-sh,
	Dmitry Torokhov, x86, Ingo Molnar, Paul Mundt, Paul Mackerras,
	Mark Salter, linux-alpha, sparclinux, linux-ia64, Thomas Gleixner,
	Guan Xuetao, linuxppc-dev, David S. Miller, linux-arm-kernel,
	Richard Henderson

This patch series removes the messy dependencies from SERIO_I8042
by having it depend on one variable (ARCH_MAY_HAVE_PC_SERIO) and
having architectures which need it select that variable in
arch/*/Kconfig.

New architectures are unlikely to need SERIO_I8042, so this avoids
having an ever growing list of architectures to exclude. If an
architecture without i8042 support isn't excluded through the
dependency list for SERIO_I8042 or through explicit disabling in
a config, it will likely panic on boot with something similar to
this (from arm64):

[   27.426181] [<ffffffc000403b1c>] i8042_flush+0x88/0x10c
[   27.426251] [<ffffffc00084cc2c>] i8042_init+0x58/0xe8
[   27.426320] [<ffffffc000080bec>] do_one_initcall+0xc4/0x14c
[   27.426404] [<ffffffc000820970>] kernel_init_freeable+0x1a4/0x244
[   27.426480] [<ffffffc0005a894c>] kernel_init+0x18/0x148
[   27.426561] Code: d2800c82 f2bf7c02 f2dff7e2 f2ffffe2 (39400042) 
[   27.426789] ---[ end trace ac076843cf0f383e ]---
[   27.426875] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

This is v2 of the patch series. Changes from version 1:

  o Added acks. arm, ia64, and sh are only ones without acks.
  o Moved select of ARCH_MIGHT_HAVE_PC_SERIO to board-specific
    Kconfigs for arm and sh.
    
A tree with these patches is at:

   git://github.com/mosalter/linux.git (serio-i8042-v2 branch)


Mark Salter (10):
  alpha: select ARCH_MIGHT_HAVE_PC_SERIO
  arm: select ARCH_MIGHT_HAVE_PC_SERIO
  ia64: select ARCH_MIGHT_HAVE_PC_SERIO
  mips: select ARCH_MIGHT_HAVE_PC_SERIO
  powerpc: select ARCH_MIGHT_HAVE_PC_SERIO
  sh: select ARCH_MIGHT_HAVE_PC_SERIO for SH_CAYMAN
  sparc: select ARCH_MIGHT_HAVE_PC_SERIO
  unicore32: select ARCH_MIGHT_HAVE_PC_SERIO
  x86: select ARCH_MIGHT_HAVE_PC_SERIO
  Kconfig: cleanup SERIO_I8042 dependencies

 arch/alpha/Kconfig               |  1 +
 arch/arm/mach-footbridge/Kconfig |  1 +
 arch/ia64/Kconfig                |  1 +
 arch/mips/Kconfig                |  1 +
 arch/powerpc/Kconfig             |  1 +
 arch/sh/boards/Kconfig           |  1 +
 arch/sparc/Kconfig               |  1 +
 arch/unicore32/Kconfig           |  1 +
 arch/x86/Kconfig                 |  1 +
 drivers/input/serio/Kconfig      | 11 ++++++++---
 10 files changed, 17 insertions(+), 3 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 05/10] powerpc: select ARCH_MIGHT_HAVE_PC_SERIO
  2013-12-17 15:48 [PATCH v2 00/10] Kconfig: cleanup SERIO_I8042 dependencies Mark Salter
@ 2013-12-17 15:48 ` Mark Salter
  2013-12-17 15:48 ` [PATCH v2 10/10] Kconfig: cleanup SERIO_I8042 dependencies Mark Salter
  2013-12-18 21:59 ` [PATCH v2 00/10] " Luck, Tony
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Salter @ 2013-12-17 15:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: linuxppc-dev, Paul Mackerras, Mark Salter

Architectures which might use an i8042 for serial IO to keyboard,
mouse, etc should select ARCH_MIGHT_HAVE_PC_SERIO.

Signed-off-by: Mark Salter <msalter@redhat.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Paul Mackerras <paulus@samba.org>
CC: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index b44b52c..fb75485 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -86,6 +86,7 @@ config PPC
 	bool
 	default y
 	select ARCH_MIGHT_HAVE_PC_PARPORT
+	select ARCH_MIGHT_HAVE_PC_SERIO
 	select BINFMT_ELF
 	select OF
 	select OF_EARLY_FLATTREE
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 10/10] Kconfig: cleanup SERIO_I8042 dependencies
  2013-12-17 15:48 [PATCH v2 00/10] Kconfig: cleanup SERIO_I8042 dependencies Mark Salter
  2013-12-17 15:48 ` [PATCH v2 05/10] powerpc: select ARCH_MIGHT_HAVE_PC_SERIO Mark Salter
@ 2013-12-17 15:48 ` Mark Salter
  2013-12-18 21:59 ` [PATCH v2 00/10] " Luck, Tony
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Salter @ 2013-12-17 15:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fenghua Yu, Tony Luck, Russell King, linux-mips, linux-sh,
	Dmitry Torokhov, x86, Ingo Molnar, Paul Mundt, Paul Mackerras,
	Mark Salter, linux-alpha, sparclinux, linux-ia64, Thomas Gleixner,
	Guan Xuetao, linuxppc-dev, David S. Miller, linux-arm-kernel,
	Richard Henderson

Remove messy dependencies from SERIO_I8042 by having it depend on one
Kconfig symbol (ARCH_MIGHT_HAVE_PC_SERIO) and having architectures
which need it select ARCH_MIGHT_HAVE_PC_SERIO in arch/*/Kconfig.
New architectures are unlikely to need SERIO_I8042, so this avoids
having an ever growing list of architectures to exclude.

Signed-off-by: Mark Salter <msalter@redhat.com>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
CC: Richard Henderson <rth@twiddle.net>
CC: linux-alpha@vger.kernel.org
CC: Russell King <linux@arm.linux.org.uk>
CC: linux-arm-kernel@lists.infradead.org
CC: Tony Luck <tony.luck@intel.com>
CC: Fenghua Yu <fenghua.yu@intel.com>
CC: linux-ia64@vger.kernel.org
CC: linux-mips@linux-mips.org
CC: Paul Mackerras <paulus@samba.org>
CC: linuxppc-dev@lists.ozlabs.org
CC: Paul Mundt <lethal@linux-sh.org>
CC: linux-sh@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
CC: sparclinux@vger.kernel.org
CC: Guan Xuetao <gxt@mprc.pku.edu.cn>
CC: Ingo Molnar <mingo@redhat.com>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: x86@kernel.org
---
 drivers/input/serio/Kconfig | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig
index 8541f94..1f5cec2 100644
--- a/drivers/input/serio/Kconfig
+++ b/drivers/input/serio/Kconfig
@@ -16,14 +16,19 @@ config SERIO
 	  To compile this driver as a module, choose M here: the
 	  module will be called serio.
 
+config ARCH_MIGHT_HAVE_PC_SERIO
+	bool
+	help
+	  Select this config option from the architecture Kconfig if
+	  the architecture might use a PC serio device (i8042) to
+          communicate with keyboard, mouse, etc.
+
 if SERIO
 
 config SERIO_I8042
 	tristate "i8042 PC Keyboard controller"
 	default y
-	depends on !PARISC && (!ARM || FOOTBRIDGE_HOST) && \
-		   (!SUPERH || SH_CAYMAN) && !M68K && !BLACKFIN && !S390 && \
-		   !ARC
+	depends on ARCH_MIGHT_HAVE_PC_SERIO
 	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,
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH v2 00/10] Kconfig: cleanup SERIO_I8042 dependencies
  2013-12-17 15:48 [PATCH v2 00/10] Kconfig: cleanup SERIO_I8042 dependencies Mark Salter
  2013-12-17 15:48 ` [PATCH v2 05/10] powerpc: select ARCH_MIGHT_HAVE_PC_SERIO Mark Salter
  2013-12-17 15:48 ` [PATCH v2 10/10] Kconfig: cleanup SERIO_I8042 dependencies Mark Salter
@ 2013-12-18 21:59 ` Luck, Tony
  2 siblings, 0 replies; 4+ messages in thread
From: Luck, Tony @ 2013-12-18 21:59 UTC (permalink / raw)
  To: Mark Salter, linux-kernel@vger.kernel.org
  Cc: Yu, Fenghua, x86@kernel.org, Russell King,
	linux-mips@linux-mips.org, linux-sh@vger.kernel.org,
	Dmitry Torokhov, Ingo Molnar, Paul Mundt, Paul Mackerras,
	linux-alpha@vger.kernel.org, sparclinux@vger.kernel.org,
	linux-ia64@vger.kernel.org, Thomas Gleixner, Guan Xuetao,
	linuxppc-dev@lists.ozlabs.org, David S. Miller,
	linux-arm-kernel@lists.infradead.org, Richard Henderson

> This is v2 of the patch series. Changes from version 1:
>
>  o Added acks. arm, ia64, and sh are only ones without acks.

ia64 bits look OK

Acked-by: Tony Luck <tony.luck@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-18 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 15:48 [PATCH v2 00/10] Kconfig: cleanup SERIO_I8042 dependencies Mark Salter
2013-12-17 15:48 ` [PATCH v2 05/10] powerpc: select ARCH_MIGHT_HAVE_PC_SERIO Mark Salter
2013-12-17 15:48 ` [PATCH v2 10/10] Kconfig: cleanup SERIO_I8042 dependencies Mark Salter
2013-12-18 21:59 ` [PATCH v2 00/10] " Luck, Tony

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).