I8042_CMD_AUX_TEST oddities for some mouses.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Ducrot Bruno
Some aux ports report false values when we send a
I8042_CMD_AUX_TEST, which prevent an 'good' probe :(The values I am aware are
0x01andPSMOUSE_RET_ACK(taken from FreeBSD).My own accupoint return
0x02. I suggest then to do something like
Do you have any accupoint docs?
Quoted 1 line
attached file (but perhaps with a config, or force option)?
I guess the only way is to remove the test altogether, as the values are defined:
00 : OK
01 : Clock Error
02 : Data Error
03 : Clock + Data Error
fa : Undefined (OK)
ff : Unknown Error (common => OK)
Other values don't happen.
Most controllers return 00. Some ff, some fa. Now if we're going to take 01 and 02 as OK as well, then everything is OK and we don't have to test at all.
And now I've received a report that some AUX ports don't bother to even do the LOOP command.
drivers/input/serio/i8042.c line 587
Quoted 11 lines
drivers/input/serio/i8042.c +1
-1@@ -581,7 +581,7 @@* operation. */ -if (i8042_command (¶m,I8042_CMD_AUX_TEST ) || (param && param !=0xff )) +if (i8042_command (¶m,I8042_CMD_AUX_TEST ) || (param && param !=0x01 && param !=0x02 && param !=0xfa && param !=0xff ))return -1 ;/*
To keep at least some detection ability (we must not detect AUX on machines where it isn't present, because they'll hang). I'll apply this patch:
[email protected], 2002-10-08 17:36:32+02:00, [email protected]
Make i8042.c even less picky about detecting an AUX port because of broken chipsets that don't support the LOOP command or report failure on the TEST command. Hopefully this won't screw any old 386/486 systems without the AUX port.
i8042.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-)
===================================================================
drivers/input/serio/i8042.c +10 -8
@@ -654,24 +654,26 @@i8042_flush ();/* -* Internal loopback test - filters out AT-type i8042's +* Internal loopback test - filters out AT-type i8042's. Unfortunately +* SiS screwed up and their 5597 doesn't support the LOOP command even +* though it has an AUX port. */ param =0x5a ; -if (i8042_command (¶m,I8042_CMD_AUX_LOOP ) || param !=0xa5 ) -return -1 ; +if (i8042_command (¶m,I8042_CMD_AUX_LOOP ) || param !=0xa5 ) {/* * External connection test - filters out AT-soldered PS/2 i8042's * 0x00 - no error, 0x01-0x03 - clock/data stuck, 0xff - general error * 0xfa - no error on some notebooks which ignore the spec -* We ignore general error, since some chips report it even under normal -* operation. +* Because it's common for chipsets to return error on perfectly functioning +* AUX ports, we test for this only when the LOOP command failed. */ -if (i8042_command (¶m,I8042_CMD_AUX_TEST ) - || (param && param !=0xfa && param !=0xff )) -return -1 ; +if (i8042_command (¶m,I8042_CMD_AUX_TEST ) + || (param && param !=0xfa && param !=0xff )) +return -1 ; + }/* * Bit assignment test - filters out PS/2 i8042's in AT mode
Signature · 2 lines
Vojtech Pavlik SuSE Labs
Quoted 10 lines · Vojtech Pavlik
Quoted 6 lines · Ducrot Bruno
Some aux ports report false values when we send a
I8042_CMD_AUX_TEST, which prevent an 'good' probe :(The values I am aware are
0x01andPSMOUSE_RET_ACK(taken from FreeBSD).My own accupoint return
0x02. I suggest then to do something likeDo you have any accupoint docs?
No. Sorry.
This is an accupoint II, with specs only available via a NDA :(( I will be very happy to get them, because this one have 4 buttons, and 2 of them are 'programable' (as claimed by toshiba), but I don't know how.
Quoted 13 lines
Quoted 2 lines
attached file (but perhaps with a config, or force option)?
I guess the only way is to remove the test altogether, as the values are defined:
00 : OK
01 : Clock Error
02 : Data Error
03 : Clock + Data Error
fa : Undefined (OK)
ff : Unknown Error (common => OK)
Quoted 5 lines
Other values don't happen.
Most controllers return 00. Some ff, some fa. Now if we're going to take 01 and 02 as OK as well, then everything is OK and we don't have to test at all.
Ok. Agreed.
I think also that this perticuliar problem occur _only_
with the toshiba satellite 3000-100 and 3000-400 (as reported by FBSD users), so I guess I have to send a patch for a dmi_scan.c workaround.
Cheers,
Signature · 3 lines
Ducrot Bruno http://www.poupinou.org Page profaissionelle http://toto.tu-me-saoules.com Haume page
Quoted 2 lines · Vojtech Pavlik
On Tue, Oct 08, 2002 at 04:45:23PM +0200, Ducrot Bruno wrote:
[cut]
Quoted 3 lines
diff -Nru
a/drivers/input/serio/i8042.cb/drivers/input/serio/i8042.cdrivers/input/serio/i8042.c +0
-0
[cut]
Quoted 3 lines
+ * Because it's common for chipsets to return error on perfectly functioning
+ * AUX ports, we test for this only when the LOOP command failed. */
Rha.. I should read more carrefully emails before replying something stupid.
Sorry, and thank.
Signature · 3 lines
Ducrot Bruno http://www.poupinou.org Page profaissionelle http://toto.tu-me-saoules.com Haume page