From 16cecfd2f5bd50ae1819915cf3af85304b804a4f Mon Sep 17 00:00:00 2001
From: Vojtech Pavlik <vojtech@suse.cz>
Date: Wed, 2 Oct 2002 00:41:21 +0200
Subject: [PATCH] Accept 0xfa as an "OK" result code for AUX TEST cmd in
 i8042.c. This makes mouse work on certain notebooks.

---
 drivers/input/serio/i8042.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index b50a133bd5d6..1df4a61256b4 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -664,11 +664,13 @@ static int __init i8042_check_aux(struct i8042_values *values)
 /*
  * 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.
  */
 
-	if (i8042_command(&param, I8042_CMD_AUX_TEST) || (param && param != 0xff))
+	if (i8042_command(&param, I8042_CMD_AUX_TEST)
+	    || (param && param != 0xfa && param != 0xff))
 		return -1;
 
 /*
-- 
2.30.9