]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Do not repeatedly attempt to set device mode on error
authorJason Gerecke <killertofu@gmail.com>
Wed, 5 Aug 2015 22:45:30 +0000 (15:45 -0700)
committerJiri Kosina <jikos@kernel.org>
Mon, 10 Aug 2015 08:47:10 +0000 (10:47 +0200)
commitf41ad4627c5110a2c7a2f0124d9385247719cb1b
tree37748961c94abf31da1f6e6d0ce7bf681afc7bd7
parent430d77f70f7582eaa2f942badd3c8feb9ae6fb17
HID: wacom: Do not repeatedly attempt to set device mode on error

As an extension of daad8fcff, there is no sense in repeatedly calling the
'wacom_set_report' and 'wacom_get_report' functions if they return an
error. Getting an error from them implies that the device is out to lunch:
either a hard error code was returned or repeated attempts at recovering
from a "soft" error all failed. In either case, doing even more retries is
not likely to resolve whatever is wrong.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c