Skip to content

Commit

Permalink
Input: i8042 - set up shared ps2_cmd_mutex for AUX ports
Browse files Browse the repository at this point in the history
[ Upstream commit 47af45d ]

The commit 4097461 ("Input: i8042 - break load dependency ...")
correctly set up ps2_cmd_mutex pointer for the KBD port but forgot to do
the same for AUX port(s), which results in communication on KBD and AUX
ports to clash with each other.

Fixes: 4097461 ("Input: i8042 - break load dependency ...")
Reported-by: Bruno Wolff III <[email protected]>
Tested-by: Bruno Wolff III <[email protected]>
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
dtor authored and Sasha Levin committed Sep 1, 2016
1 parent 0a47a53 commit 61f53d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/serio/i8042.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,7 @@ static int __init i8042_create_aux_port(int idx)
serio->write = i8042_aux_write;
serio->start = i8042_start;
serio->stop = i8042_stop;
serio->ps2_cmd_mutex = &i8042_mutex;
serio->port_data = port;
serio->dev.parent = &i8042_platform_device->dev;
if (idx < 0) {
Expand Down

0 comments on commit 61f53d4

Please sign in to comment.