Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: Workaround for Sunrex K8561 IR Keyboard/Mouse. The mouse sends an incorrect ID and wasn't recognized.

Reported-by: Stefan Seyfried <seife@suse.de>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Vojtech Pavlik and committed by
Dmitry Torokhov
7741e931 74af42bb

+4 -1
+4 -1
drivers/input/mouse/psmouse-base.c
··· 518 518 /* 519 519 * First, we check if it's a mouse. It should send 0x00 or 0x03 520 520 * in case of an IntelliMouse in 4-byte mode or 0x04 for IM Explorer. 521 + * Sunrex K8561 IR Keyboard/Mouse reports 0xff on second and subsequent 522 + * ID queries, probably due to a firmware bug. 521 523 */ 522 524 523 525 param[0] = 0xa5; 524 526 if (ps2_command(ps2dev, param, PSMOUSE_CMD_GETID)) 525 527 return -1; 526 528 527 - if (param[0] != 0x00 && param[0] != 0x03 && param[0] != 0x04) 529 + if (param[0] != 0x00 && param[0] != 0x03 && 530 + param[0] != 0x04 && param[0] != 0xff) 528 531 return -1; 529 532 530 533 /*