lkml.org 
[lkml]   [2002]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: kbd not functioning in 2.5.25-dj2
Date
From
Vojtech Pavlik wrote:
> > > > mice: PS/2 mouse device common for all mice
> > > > atkbd.c: Sent: f5
> > > > atkbd.c: Received fe
> > > > serio: i8042 KBD port at 0x60,0x64 irq 1
[...]
> Responses:
>
> 0xfe
> Resend. Keyboard will send this if it didn't receive the last command
> correctly.
>
> Unfortunately, 0xfe also happens when you send a command to a keyboard
> that's not plugged, or when the keyboard doesn't understand the command.
> Resending in those cases (which are the most common) would cause an
> infinite loop ...

Not if implemented correctly.

Set the retry counter to 5 at the beginning.

if you get 0xfe: decrement retry counter,
if 0 :
no keyboard connected. Give up.
else
Just immediately resend the last command
else
set the retry counter to 5 again.
process returned code


Roger.



--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots.
* There are also old, bald pilots.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [from the cache]
©2003-2011 Jasper Spaans