diff options
author | 2023-07-12 17:02:34 +0200 | |
---|---|---|
committer | 2023-08-25 10:40:32 +0200 | |
commit | 60165ab774cb0c509680a73cf826d0e158454653 (patch) | |
tree | 80e1248b3cff463f8b7542299054fa4a7f932713 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | HID: logitech-dj: Fix error handling in logi_dj_recv_switch_to_dj_mode() (diff) | |
download | wireguard-linux-60165ab774cb0c509680a73cf826d0e158454653.tar.xz wireguard-linux-60165ab774cb0c509680a73cf826d0e158454653.zip |
HID: logitech-hidpp: rework one more time the retries attempts
Extract the internal code inside a helper function, fix the
initialization of the parameters used in the helper function
(`hidpp->answer_available` was not reset and `*response` wasn't either),
and use a `do {...} while();` loop.
Fixes: 586e8fede795 ("HID: logitech-hidpp: Retry commands when device is busy")
Cc: stable@vger.kernel.org
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20230621-logitech-fixes-v2-1-3635f7f9c8af@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions