From: Dmitry Torokhov Date: Wed, 17 Aug 2016 00:38:54 +0000 (-0700) Subject: Input: i8042 - set up shared ps2_cmd_mutex for AUX ports X-Git-Tag: v3.10.105~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76494f748ade12160ab42552e582a656a942997d;p=thirdparty%2Fkernel%2Fstable.git Input: i8042 - set up shared ps2_cmd_mutex for AUX ports commit 47af45d684b5f3ae000ad448db02ce4f13f73273 upstream. The commit 4097461897df ("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: 4097461897df ("Input: i8042 - break load dependency ...") Reported-by: Bruno Wolff III Tested-by: Bruno Wolff III Signed-off-by: Dmitry Torokhov Signed-off-by: Willy Tarreau --- diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 2513c8a241c9d..2d8f9593fb181 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -1249,6 +1249,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) {