HID: logitech-hidpp: Retry commands when device is busy
authorBastien Nocera <hadess@hadess.net>
Thu, 9 Feb 2023 15:49:15 +0000 (16:49 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 15 Feb 2023 10:43:48 +0000 (11:43 +0100)
commit586e8fede7953b1695b5ccc6112eff9b052e79ac
tree0600259980615ea64eee9520d5331b152be216aa
parenta47a3b7af7501c3b6cee6621ccc4a7dd3de52631
HID: logitech-hidpp: Retry commands when device is busy

Handle the busy error coming from the device or receiver. The
documentation says a busy error can be returned when:
"
Device (or receiver) cannot answer immediately to this request
for any reason i.e:
- already processing a request from the same or another SW
- pipe full
"

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Link: https://lore.kernel.org/r/20230209154916.462158-1-hadess@hadess.net
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-hidpp.c