Benjamin Tissoires
f1a9a149ab
HID: magicmouse: fix race between input_register() and probe()
...
Since kernel 3.7, it appears that the input registration occured before
the end of magicmouse_setup_input(). This is shown by receiving a lot of
"EV_SYN SYN_REPORT 1" instead of normal "EV_SYN SYN_REPORT 0".
This value means that the output buffer is full, and the user space
is loosing events.
Using .input_configured guarantees that the race is not occuring, and that
the call of "input_set_events_per_packet(input, 60)" is taken into account
by input_register().
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=908604
Cc: stable@vger.kernel.org
Reported-and-Tested-By: Clarke Wixon <cwixon@usa.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2013-04-04 09:49:56 +02:00
..
2013-02-21 10:42:39 +01:00
2013-03-18 15:50:10 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-03-29 15:13:39 +01:00
2013-01-03 10:27:31 +01:00
2012-08-27 08:01:21 -07:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-25 11:17:31 -08:00
2013-01-03 10:27:31 +01:00
2013-03-29 15:13:39 +01:00
2012-12-12 21:41:55 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-20 10:19:10 +01:00
2013-02-21 10:45:01 +01:00
2012-09-25 15:41:02 +02:00
2013-03-07 16:06:55 +01:00
2012-09-22 10:58:48 +02:00
2013-04-04 09:49:56 +02:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-03-27 14:09:40 +01:00
2013-02-21 10:45:01 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2012-08-15 10:13:26 +02:00
2012-10-31 17:52:15 -02:00
2013-01-03 10:27:31 +01:00
2012-10-01 10:25:01 +02:00
2012-10-02 09:54:49 -07:00
2012-08-15 10:13:26 +02:00
2012-08-15 10:13:26 +02:00
2012-09-11 16:06:22 +02:00
2013-01-17 11:06:09 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2012-11-12 15:30:27 +01:00
2012-11-12 15:30:27 +01:00
2012-11-12 15:30:28 +01:00
2012-11-18 22:58:28 +01:00
2012-11-12 15:30:29 +01:00
2012-11-12 15:30:29 +01:00
2013-01-03 10:27:31 +01:00
2012-10-17 10:44:47 +02:00
2012-11-12 15:30:28 +01:00
2012-11-12 15:30:28 +01:00
2012-11-05 13:17:39 +01:00
2012-07-20 09:50:42 +02:00
2013-02-22 23:31:31 -05:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-21 10:45:01 +01:00
2013-01-03 10:27:31 +01:00
2013-02-21 10:45:52 +01:00
2013-01-03 10:27:31 +01:00
2013-01-31 16:51:47 +01:00
2013-01-03 10:27:31 +01:00
2013-02-19 11:31:46 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-18 10:59:24 +01:00
2013-02-18 10:41:52 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-26 20:16:07 -08:00
2013-02-21 17:41:38 -08:00
2013-02-21 10:45:52 +01:00
2013-02-18 11:28:16 +01:00