]> git.baikalelectronics.ru Git - kernel.git/commit
HID: Fix logitech-dj: missing Unifying device issue
authorNestor Lopez Casado <nlopezcasad@logitech.com>
Fri, 21 Sep 2012 10:21:34 +0000 (12:21 +0200)
committerJiri Kosina <jkosina@suse.cz>
Sat, 22 Sep 2012 08:58:48 +0000 (10:58 +0200)
commit8f21ad6c3f2880274270fce8b5c6411c94c9a1f0
treec579bba38c8a9d6f38b3b68661c4268396e477e5
parent36630d3a293e8159b1a718b7f4fb9ab1a3dc6bc7
HID: Fix logitech-dj: missing Unifying device issue

This patch fixes an issue introduced after commit bbc2c4fe187b1a51
("HID: Fix race condition between driver core and ll-driver").

After that commit, hid-core discards any incoming packet that arrives while
hid driver's probe function is being executed.

This broke the enumeration process of hid-logitech-dj, that must receive
control packets in-band with the mouse and keyboard packets. Discarding mouse
or keyboard data at the very begining is usually fine, but it is not the case
for control packets.

This patch forces a re-enumeration of the paired devices when a packet arrives
that comes from an unknown device.

Based on a patch originally written by Benjamin Tissoires.

Cc: stable@vger.kernel.org # v3.2+
Signed-off-by: Nestor Lopez Casado <nlopezcasad@logitech.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-dj.c
drivers/hid/hid-logitech-dj.h