summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-logitech-hidpp.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2019-11-29 20:37:55 +0100
committerJiri Kosina <jkosina@suse.cz>2019-11-29 20:37:55 +0100
commita820e450390a5a0a9a2174e79326318f4703668b (patch)
treed5f61bfa4642f7cca6d4b22a46e5a258bf2c2337 /drivers/hid/hid-logitech-hidpp.c
parent2fa55328f18f38bb85dc57da8c34616430c7bffb (diff)
parent61005d65b6c7dcf61c19516e6ebe5acc02d2cdda (diff)
downloadlinux-stable-a820e450390a5a0a9a2174e79326318f4703668b.tar.gz
linux-stable-a820e450390a5a0a9a2174e79326318f4703668b.tar.bz2
linux-stable-a820e450390a5a0a9a2174e79326318f4703668b.zip
Merge branch 'for-5.5/logitech' into for-linus
- Support for Logitech G15 (Hans de Goede) - silencing of non-informative error flow in dmesg from logitechi-hiddpp (Hans de Goede)
Diffstat (limited to 'drivers/hid/hid-logitech-hidpp.c')
-rw-r--r--drivers/hid/hid-logitech-hidpp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 8e91e2f06cb4..cd9193078525 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -1102,6 +1102,9 @@ static int hidpp20_batterylevel_get_battery_capacity(struct hidpp_device *hidpp,
ret = hidpp_send_fap_command_sync(hidpp, feature_index,
CMD_BATTERY_LEVEL_STATUS_GET_BATTERY_LEVEL_STATUS,
NULL, 0, &response);
+ /* Ignore these intermittent errors */
+ if (ret == HIDPP_ERROR_RESOURCE_ERROR)
+ return -EIO;
if (ret > 0) {
hid_err(hidpp->hid_dev, "%s: received protocol error 0x%02x\n",
__func__, ret);