• N
    HID: Fix logitech-dj: missing Unifying device issue · 59626408
    Nestor Lopez Casado 提交于
    This patch fixes an issue introduced after commit 4ea54542
    ("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: NNestor Lopez Casado <nlopezcasad@logitech.com>
    Signed-off-by: NJiri Kosina <jkosina@suse.cz>
    59626408
hid-logitech-dj.c 29.7 KB