summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2019-04-20 14:21:53 +0300
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-04-23 19:00:51 +0300
commitb6aeeddef68deec9d603e455d163e3b41951f2d9 (patch)
treec1160307aa773f248bc78680c33b46d623cf2885 /init
parenta1d97ccbb4d05c049dffafc23fe62f0dd1a06d83 (diff)
downloadlinux-b6aeeddef68deec9d603e455d163e3b41951f2d9.tar.xz
HID: logitech-dj: add logi_dj_recv_queue_unknown_work helper
Add a logi_dj_recv_queue_unknown_work helper and implement query rate-limiting inside this helper. The motivations behind this are: 1) We need to queue workitems for reports with no place to forward them from more places with the upcoming non-unifying receiver support, hence the addition of the helper function. 2) When we've missed a pairing info report (or there is a race between the report and input-events) and the input report is e.g. from a mouse being moved, we will get a lot of these before we've finished (re-) querying and enumerating the devices, hence the rate-limiting. Note this also removes the: if (!djrcv_dev->paired_dj_devices[hidpp_report->device_index]) check previously guarding the sending of an unknown workitem, the caller of logi_dj_recv_queue_notification already does this check before calling logi_dj_recv_queue_notification. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions