2002-11-12 02:46:55

by Nat Ersoz

[permalink] [raw]
Subject: pc_keyb.c #define kbd_controller_present()

1. We have a hardware platform which do not have a PS/2 style keyboard
controller. When the kernel boots we get the following message, printed
many times over:

"pc_keyb: controller jammed 0xFF"

2. In the file linx/drivers/char/pc_keyb.c, the following lines are
present (lines 72-74 for kernel version 2.4.20-pre10)

#ifndef kbd_controller_present
#define kbd_controller_present() 1
#endif

By changing kbd_controller_present() to '0' instead of '1', we no longer
the the "jammed" message and a 15-20 second reduction in boot time.

3. It would be nice if there were a .config file parameter that was the
moral equivalent of CONFIG_PSMOUSE for the keyboard, like say
CONFIG_PSKEYBD so that the keyboard could be disabled as easily as the
mouse.

4. We try to maintain different linux/.config files for each hardware
platform. This works well, except in this case of the keyboard. In
this case we have to maintain a hardware specific patch.

Is it possible to get a new .config file symbol for the keyboard similar
to the mouse? It would be very helpful to us.

Thanks,

Nat
[email protected]

PS - please post responses to my email as well as the LKML. Thanks.




2002-11-12 13:45:41

by Alan

[permalink] [raw]
Subject: Re: pc_keyb.c #define kbd_controller_present()

On Tue, 2002-11-12 at 02:53, Nat Ersoz wrote:
> Is it possible to get a new .config file symbol for the keyboard similar
> to the mouse? It would be very helpful to us.

2.5 already has the ability to build a kernel without PS/2 keyboard. For
2.4 it wouldnt be hard. Cutting down the amount of noise and the time
waited might not be a bad idea too