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

HID: magicmouse: do not set up autorepeat

Neither the trackpad, nor the mouse want input core to generate autorepeat
events for their buttons, so let's reset the bit (as hid-input sets it for
these devices based on the usage vendor code).

Cc: stable@vger.kernel.org
Reported-by: Yariv <oigevald+kernel@gmail.com>
Tested-by: Yariv <oigevald+kernel@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Dmitry Torokhov and committed by
Jiri Kosina
6363d206 aa3c439c

+6
+6
drivers/hid/hid-magicmouse.c
··· 535 535 __set_bit(MSC_RAW, input->mscbit); 536 536 } 537 537 538 + /* 539 + * hid-input may mark device as using autorepeat, but neither 540 + * the trackpad, nor the mouse actually want it. 541 + */ 542 + __clear_bit(EV_REP, input->evbit); 543 + 538 544 return 0; 539 545 } 540 546