]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Input: i8042 - remove unneeded call to i8042_interrupt()
authorDmitry Torokhov <dtor@insightbb.com>
Fri, 3 Nov 2006 04:27:49 +0000 (23:27 -0500)
committerDmitry Torokhov <dtor@insightbb.com>
Fri, 3 Nov 2006 04:27:49 +0000 (23:27 -0500)
Remove call to i8042_interrupt() from i8042_aux_write(). According
to Vojtech it may cause problems with older controllers if it is
called right after real interrupt. Also it is not needed anymore
since we register IRQs early and not waiting for serio ports to
be opened.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/i8042.c

index 7e3141f37e32a7907fa2d00b15266652b2b6bb9e..d365f227ac562930389bae2e7ab590565916a11d 100644 (file)
@@ -255,25 +255,10 @@ static int i8042_kbd_write(struct serio *port, unsigned char c)
 static int i8042_aux_write(struct serio *serio, unsigned char c)
 {
        struct i8042_port *port = serio->port_data;
-       int retval;
-
-/*
- * Send the byte out.
- */
-
-       if (port->mux == -1)
-               retval = i8042_command(&c, I8042_CMD_AUX_SEND);
-       else
-               retval = i8042_command(&c, I8042_CMD_MUX_SEND + port->mux);
 
-/*
- * Make sure the interrupt happens and the character is received even
- * in the case the IRQ isn't wired, so that we can receive further
- * characters later.
- */
-
-       i8042_interrupt(0, NULL);
-       return retval;
+       return i8042_command(&c, port->mux == -1 ?
+                                       I8042_CMD_AUX_SEND :
+                                       I8042_CMD_MUX_SEND + port->mux);
 }
 
 /*