diff options
| author | José Expósito <[email protected]> | 2022-10-09 18:27:47 +0000 |
|---|---|---|
| committer | Benjamin Tissoires <[email protected]> | 2022-10-14 09:47:50 +0000 |
| commit | bb5f0c855dcfc893ae5ed90e4c646bde9e4498bf (patch) | |
| tree | 6066299c5fd26caa71162e87438873c6dbbde3b8 /drivers/fpga/xilinx-spi.c | |
| parent | Merge tag 'for-linus-2022100501' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
| download | kernel-bb5f0c855dcfc893ae5ed90e4c646bde9e4498bf.tar.gz kernel-bb5f0c855dcfc893ae5ed90e4c646bde9e4498bf.zip | |
HID: magicmouse: Do not set BTN_MOUSE on double report
Under certain conditions the Magic Trackpad can group 2 reports in a
single packet. The packet is split and the raw event function is
invoked recursively for each part.
However, after processing each part, the BTN_MOUSE status is updated,
sending multiple click events. [1]
Return after processing double reports to avoid this issue.
Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/811 # [1]
Fixes: a462230e16ac ("HID: magicmouse: enable Magic Trackpad support")
Reported-by: Nulo <[email protected]>
Signed-off-by: José Expósito <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions
