• Nestor Lopez Casado's avatar
    HID: Revert "Revert "HID: Fix logitech-dj: missing Unifying device issue"" · ac847139
    Nestor Lopez Casado authored
    commit c63e0e370028d7e4033bd40165f18499872b5183 upstream.
    
    This reverts commit 8af6c088.
    
    This patch re-adds the workaround introduced by 59626408
    which was reverted by 8af6c088.
    
    The original patch 596264 was needed to overcome a situation where
    the hid-core would drop incoming reports while probe() was being
    executed.
    
    This issue was solved by c849a614 which added
    hid_device_io_start() and hid_device_io_stop() that enable a specific
    hid driver to opt-in for input reports while its probe() is being
    executed.
    
    Commit a9dd22b7 modified hid-logitech-dj so as to use the
    functionality added to hid-core. Having done that, workaround 596264
    was no longer necessary and was reverted by 8af6c088.
    
    We now encounter a different problem that ends up 'again' thwarting
    the Unifying receiver enumeration. The problem is time and usb controller
    dependent. Ocasionally the reports sent to the usb receiver to start
    the paired devices enumeration fail with -EPIPE and the receiver never
    gets to enumerate the paired devices.
    
    With dcd9006b the problem was "hidden" as the call to the usb
    driver became asynchronous and none was catching the error from the
    failing URB.
    
    As the root cause for this failing SET_REPORT is not understood yet,
    -possibly a race on the usb controller drivers or a problem with the
    Unifying receiver- reintroducing this workaround solves the problem.
    
    Overall what this workaround does is: If an input report from an
    unknown device is received, then a (re)enumeration is performed.
    
    related bug:
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1194649Signed-off-by: 's avatarNestor Lopez Casado <nlopezcasad@logitech.com>
    Signed-off-by: 's avatarJiri Kosina <jkosina@suse.cz>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    ac847139
Name
Last commit
Last update
..
i2c-hid Loading commit data...
usbhid Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
hid-a4tech.c Loading commit data...
hid-apple.c Loading commit data...
hid-appleir.c Loading commit data...
hid-aureal.c Loading commit data...
hid-axff.c Loading commit data...
hid-belkin.c Loading commit data...
hid-cherry.c Loading commit data...
hid-chicony.c Loading commit data...
hid-core.c Loading commit data...
hid-cypress.c Loading commit data...
hid-debug.c Loading commit data...
hid-dr.c Loading commit data...
hid-elecom.c Loading commit data...
hid-emsff.c Loading commit data...
hid-ezkey.c Loading commit data...
hid-gaff.c Loading commit data...
hid-generic.c Loading commit data...
hid-gyration.c Loading commit data...
hid-holtek-kbd.c Loading commit data...
hid-holtekff.c Loading commit data...
hid-hyperv.c Loading commit data...
hid-icade.c Loading commit data...
hid-ids.h Loading commit data...
hid-input.c Loading commit data...
hid-kensington.c Loading commit data...
hid-keytouch.c Loading commit data...
hid-kye.c Loading commit data...
hid-lcpower.c Loading commit data...
hid-lenovo-tpkbd.c Loading commit data...
hid-lg.c Loading commit data...
hid-lg.h Loading commit data...
hid-lg2ff.c Loading commit data...
hid-lg3ff.c Loading commit data...
hid-lg4ff.c Loading commit data...
hid-lgff.c Loading commit data...
hid-logitech-dj.c Loading commit data...
hid-logitech-dj.h Loading commit data...
hid-magicmouse.c Loading commit data...
hid-microsoft.c Loading commit data...
hid-monterey.c Loading commit data...
hid-multitouch.c Loading commit data...
hid-ntrig.c Loading commit data...
hid-ortek.c Loading commit data...
hid-petalynx.c Loading commit data...
hid-picolcd.h Loading commit data...
hid-picolcd_backlight.c Loading commit data...
hid-picolcd_cir.c Loading commit data...
hid-picolcd_core.c Loading commit data...
hid-picolcd_debugfs.c Loading commit data...
hid-picolcd_fb.c Loading commit data...
hid-picolcd_lcd.c Loading commit data...
hid-picolcd_leds.c Loading commit data...
hid-pl.c Loading commit data...
hid-primax.c Loading commit data...
hid-prodikeys.c Loading commit data...
hid-ps3remote.c Loading commit data...
hid-roccat-arvo.c Loading commit data...
hid-roccat-arvo.h Loading commit data...
hid-roccat-common.c Loading commit data...
hid-roccat-common.h Loading commit data...
hid-roccat-isku.c Loading commit data...
hid-roccat-isku.h Loading commit data...
hid-roccat-kone.c Loading commit data...
hid-roccat-kone.h Loading commit data...
hid-roccat-koneplus.c Loading commit data...
hid-roccat-koneplus.h Loading commit data...
hid-roccat-konepure.c Loading commit data...
hid-roccat-konepure.h Loading commit data...
hid-roccat-kovaplus.c Loading commit data...
hid-roccat-kovaplus.h Loading commit data...
hid-roccat-lua.c Loading commit data...
hid-roccat-lua.h Loading commit data...
hid-roccat-pyra.c Loading commit data...
hid-roccat-pyra.h Loading commit data...
hid-roccat-savu.c Loading commit data...
hid-roccat-savu.h Loading commit data...
hid-roccat.c Loading commit data...
hid-saitek.c Loading commit data...
hid-samsung.c Loading commit data...
hid-sensor-hub.c Loading commit data...
hid-sjoy.c Loading commit data...
hid-sony.c Loading commit data...
hid-speedlink.c Loading commit data...
hid-steelseries.c Loading commit data...
hid-sunplus.c Loading commit data...
hid-thingm.c Loading commit data...
hid-tivo.c Loading commit data...
hid-tmff.c Loading commit data...
hid-topseed.c Loading commit data...
hid-twinhan.c Loading commit data...
hid-uclogic.c Loading commit data...
hid-wacom.c Loading commit data...
hid-waltop.c Loading commit data...
hid-wiimote-core.c Loading commit data...
hid-wiimote-debug.c Loading commit data...
hid-wiimote-ext.c Loading commit data...
hid-wiimote.h Loading commit data...
hid-zpff.c Loading commit data...
hid-zydacron.c Loading commit data...
hidraw.c Loading commit data...
uhid.c Loading commit data...