HID: magicmouse: fix reconnection of Magic Mouse 2
authorJohn Chen <johnchen902@gmail.com>
Tue, 30 Mar 2021 11:33:18 +0000 (19:33 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Apr 2021 11:15:15 +0000 (13:15 +0200)
commitc0dc5582812dfaf122a6eb188b0cd8e5ae4b0387
tree6b7cf9e8d439db1770cdf66a0d54cc620fdcfb6d
parent3dcc5f7b45e037b0c6e84e4f757d16c55535db28
HID: magicmouse: fix reconnection of Magic Mouse 2

It is observed that the Magic Mouse 2 would not enter multi-touch mode
unless the mouse is connected before loading the module. It seems to be
a quirk specific to Magic Mouse 2

Retrying after 500ms fixes the problem for me. The delay can't be
reduced much further --- 300ms didn't work for me. Retrying immediately
after receiving an event didn't work either.

Signed-off-by: John Chen <johnchen902@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c