HID: steelseries: Fix battery requests stopping after some time
authorBastien Nocera <hadess@hadess.net>
Wed, 23 Oct 2024 11:24:37 +0000 (13:24 +0200)
committerJiri Kosina <jkosina@suse.com>
Wed, 6 Nov 2024 14:10:32 +0000 (15:10 +0100)
commit138a339e39bb5acf6b0d0d1da91387f5f0a7dabd
treedc32e9337dd106024b17329d71546bf805376d05
parentc9a50b90905a1dc79ca72d4a262da30d3572ca9e
HID: steelseries: Fix battery requests stopping after some time

In some cases, the headset receiver will answer one of our requests with
garbage, or not at all. This is a problem when we only request battery
information once we've received a battery response, as we might never
get to request battery information again.

If the data from the receiver could not be parsed, and there's no
pending battery requests, schedule a new request.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-steelseries.c