Commit 5d29ce55 authored by David Mosberger's avatar David Mosberger Committed by Linus Torvalds

[PATCH] trivial keyboard driver patch

This makes it possible to run the ia64 kernel both on platforms with the
legacy keyboard controller and those without (as is the case for the hp
zx1 platform, for example).  The new code is inside #ifdef CONFIG_IA64,
though it would probably be a good idea to enable it unconditionally.
The patch is by Alex Williamson.
parent cde6bc97
......@@ -808,6 +808,17 @@ static char * __init initialize_kbd(void)
{
int status;
#ifdef CONFIG_IA64
/*
* This is not really IA-64 specific. Probably ought to be done on all platforms
* that are (potentially) legacy-free.
*/
if (kbd_read_status() == 0xff && kbd_read_input() == 0xff) {
kbd_exists = 0;
return "No keyboard controller preset";
}
#endif
/*
* Test the keyboard interface.
* This seems to be the only way to get it going.
......@@ -910,6 +921,10 @@ void __init pckbd_init_hw(void)
char *msg = initialize_kbd();
if (msg)
printk(KERN_WARNING "initialize_kbd: %s\n", msg);
#ifdef CONFIG_IA64
if (!kbd_exists)
return;
#endif
}
#if defined CONFIG_PSMOUSE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment