Files
linux/drivers/hid
Benjamin Tissoires 3a5fa0add9 HID: magicmouse: fix race between input_register() and probe()
BugLink: http://bugs.launchpad.net/bugs/1168506

commit f1a9a149ab upstream.

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2013-04-17 06:40:54 -06:00
..
2013-04-05 09:25:47 -07:00
2012-10-31 15:52:59 +01:00
2012-02-28 13:37:12 +01:00
2012-01-02 13:04:55 +01:00
2012-01-02 13:04:55 +01:00