patch-2.2.17 linux/drivers/char/pc_keyb.c

Next file: linux/drivers/char/rio/func.h
Previous file: linux/drivers/char/n_tty.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/drivers/char/pc_keyb.c linux/drivers/char/pc_keyb.c
@@ -401,15 +401,14 @@
 	}
     else if(scancode == AUX_RECONNECT){
         queue->head = queue->tail = 0;  /* Flush input queue */
-        /*
-         * need this stuff? seems to work fine w/o it for me
-        aux_write_ack(AUX_SET_SAMPLE);
-        aux_write_ack(100);
-        aux_write_ack(AUX_SET_RES);
-        aux_write_ack(3);
-        aux_write_ack(AUX_SET_SCALE21);
-        */
-        aux_write_ack(AUX_ENABLE_DEV);  /* ping the mouse :) */
+        /* ping the mouse :) */
+	kb_wait();
+	kbd_write_command(KBD_CCMD_WRITE_MOUSE);
+	kb_wait();
+	kbd_write_output(AUX_ENABLE_DEV);
+	/* we expect an ACK in response. */
+	mouse_reply_expected++;
+	kb_wait();
         return;
     }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)