lkml.org 
[lkml]   [1999]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /dev/psaux troubles with 2.2.2
Ralf Corsepius wrote:

> Johan Myreen wrote:
> > Please try this out and report problems and success stories.

> I have a partial success story for you:

> The first loop of your patch fails to detect psaux (sets d3ok=0).
> The second loop successfully detects psaux (sets d2ok=1), however it doesn't
> set retval=1.

> AFAIU, this problem might be just a last-minute screw-up and the patch below
> might be what you had intented.

Sorry, no. The idea is to detect a mouse port if it is there, but at the
same time make sure the detection routine does not return "true" if a
port is not present. The patch first tries to write a byte into the aux
port output buffer, and then reads it back. If that succeeds, we have an
aux port. If the write fails, we try exactly the same command with the
keyboard output buffer. We make the assumption that these two commands
are either both implemented, or neither of them are implemented on a
controller with an aux port. If both writes fail, we are back in square
one, and have to try other (not perfectly reliable) tricks to detect the
port.

Unfortunately, your report tells us that this strategy doesn't work.
Your controller implements one of the commands, but not the other.

Johan Myréen
jem@iki.fi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.134 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site