Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39669
b: refs/heads/master
c: f4e3c71
h: refs/heads/master
i:
  39667: 2cb7b06
v: v3
  • Loading branch information
Dmitry Torokhov committed Nov 3, 2006
1 parent d90767d commit 9e94860
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1b2965057700d6dc9e1f986e8f7743b95ead424
refs/heads/master: f4e3c711b31cea401b03ce39d4b5f1a30279094c
21 changes: 3 additions & 18 deletions trunk/drivers/input/serio/i8042.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 9e94860

Please sign in to comment.