From: Russell King <rmk@arm.linux.org.uk>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>,
Roman Zippel <zippel@linux-m68k.org>
Subject: Re: CONFIG_I8042
Date: Sun, 28 Sep 2003 20:15:16 +0100 [thread overview]
Message-ID: <20030928201516.D1428@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0309281148350.15408-100000@home.osdl.org>; from torvalds@osdl.org on Sun, Sep 28, 2003 at 11:49:45AM -0700
On Sun, Sep 28, 2003 at 11:49:45AM -0700, Linus Torvalds wrote:
>
> On Sun, 28 Sep 2003, Russell King wrote:
> >
> > It appears that "select" doesn't accept conditionals as the kconfig
> > language stands - jejb also ran into this issue, and tried various
> > ways around. The only solution which seems to work is to remove this
> > select line entirely.
>
> That is WRONG.
I don't think you've interpreted what I've said correctly. I'm not
arguing at all about SERIO itself. In fact, I completely agree that
selecting KEYBOARD_ATKBD should automatically select SERIO since
atkbd.c uses serio.c.
The information I received today from James Bottomley, who is also
seeing this issue, is that the following construct resulted in
I8042 being unconditionally selected:
config KEYBOARD_ATKBD
...
select SERIO
select SERIO_I8042 if X86
However, I've just decided to try it myself, and it does indeed work
as expected. Here's a (tested on non-x86) patch which fixes this issue
and gives us the correct behaviour for non-x86 platforms, and should
also give the desired behaviour for x86 and embedded platforms.
--- orig/drivers/input/keyboard/Kconfig Sun Sep 28 09:54:29 2003
+++ linux/drivers/input/keyboard/Kconfig Sun Sep 28 20:06:40 2003
@@ -15,7 +15,8 @@
tristate "AT keyboard support" if EMBEDDED || !X86
default y
depends on INPUT && INPUT_KEYBOARD
- select SERIO_I8042
+ select SERIO
+ select SERIO_I8042 if !EMBEDDED && X86
help
Say Y here if you want to use a standard AT or PS/2 keyboard. Usually
you'll need this, unless you have a different type keyboard (USB, ADB
--
Russell King (rmk@arm.linux.org.uk) http://www.arm.linux.org.uk/personal/
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
next prev parent reply other threads:[~2003-09-28 19:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-28 15:03 CONFIG_I8042 Russell King
2003-09-28 15:10 ` CONFIG_I8042 Russell King
2003-09-28 17:31 ` CONFIG_I8042 Michael Frank
2003-09-28 18:37 ` CONFIG_I8042 Linus Torvalds
2003-09-28 18:45 ` CONFIG_I8042 Russell King
2003-09-28 18:49 ` CONFIG_I8042 Linus Torvalds
2003-09-28 19:15 ` Russell King [this message]
2003-09-28 19:21 ` CONFIG_I8042 Roman Zippel
2003-09-28 19:30 ` CONFIG_I8042 Russell King
2003-09-28 17:16 ` CONFIG_I8042 Michael Frank
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=20030928201516.D1428@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=zippel@linux-m68k.org \
/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